As far as the DESTOON system is concerned, there are too many sites using the default URL. How to personalize it? Today we will talk about the change plan of digitizing the URL of the show details page. 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 api/url.inc.php of the url rule
turn up
- $urls['php']['item'][4] = array('example'=>'('.$L['url_rewrite'].') show/1/','index'=>'show/{$itemid}/', 'page'=>'show/{$itemid}/{$page}/');
Add new rules on 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 backend, module settings, SEO

4. Update the data in the module so that all information URLs become new URLs
5. Tutorial completed