DESTOON system, there are too many sites using the default URL. How to personalize it? Today we will talk about the change plan of digitizing the show details page URL. The following tutorial is used as a reference
Original website www.***.com/sell/show-100.html
The final effect after the change is www.***.com/sell/100.html
Pay attention to the key points and do not conflict with the URL of the list
The final example effect can be found on this site: https://www.***.com/course/1013.html
1. Find the file root directory of the url rule api/url.inc.php
Found
- $urls['php']['item'][4] = array('example'=>'('.$L['url_rewrite'].') show/1/','index'=>'show/{$itemid}/', 'page'=>'show/{$itemid}/{$page}/');
Add a new rule in the next line
- $urls['php']['item'][5] = array('example'=>'('.$L['url_rewrite'].') 1-2.html','index'=>'{$itemid}.html', 'page'=>'{$itemid}-{$page}.html');
The effect is as shown below

2. On the server, add new pseudo-static rules to the site
NGINX version
- rewrite ^/(.*)/([0-9]+)([-])?([0-9]+)?.html$ /$1/show.php?itemid=$2&page=$4 last;
.htaccess
- RewriteRule ^(.*)/([0-9]+).html?([/])?$ $1/show.php?itemid=$2&page=$4
Note: Please convert the rules of other environments by yourself
The example picture shows the pagoda panel

3. Website background, module settings, SEO

4. Update data in the module and change all information URLs to new URLs
5. Tutorial completed