- RewriteEngine on
- RewriteRule ^ article/index.html $ article/index. php
- RewriteRule ^ article/detail-(. [0-9] * developer.html $ article/index. php? Type = detail & id = $1
- RewriteRule ^ article/list-(. [0-9] *)-(. [0-9] * ).html $ article/index. php? Type = list & classid = $1 & offset = $2
- RewriteRule ^ product/index.html $ product/index. php
- RewriteRule ^ product/detail-(. [0-9] * developer.html $ product/index. php? Type = detail & id = $1
- RewriteRule ^ product/list-(. [0-9] *)-(. [0-9] * 2.16.html $ product/index. php? Type = list & classid = $1 & offset = $2
- RewriteRule into index.html $ index. php
- RewriteRule ^ aboutus/detail-(. [0-9] * pai.html $ aboutus/index. php? Type = detail & id = $1
- RewriteRule ^ aboutus/detail-(. [0-9] *)-(. [0-9] * 2.16.html $ aboutus/index. php? Type = list & classid = $1 & offset = $2
Description: aboutus, article, and product are the module names.
- RewriteRule ^ aboutus/detail-(. [0-9] *)-(. [0-9] * 2.16.html $ aboutus/index. php? Type = list & classid = $1 & offset = $2
-
This is the page of The aboutus module. RewriteRule into index.html $ index. php is a homepage pseudo-static rewrite. if any module requires pseudo-static rewrite, refer to the preceding description in the. htaccess file. 2. go to System management on the website background-configuration management-change the pseudo-static module connection mode to 2. do not change other modules. 3. after rewriting the preceding address, you need to modify the link address, for example, the link address of the navigation, and use the link address of the first id of the aboutus module to write a static address, the above aboutus/detail -(. [0-9] * ).html, here (. [0-9] *) is changed to 1, modified to static address is so aboutus/detail-1.html can also be customized to add 1 link mode on it. 4. delete the cache, such as the article module. the address of the home page is still the article directory. you do not need to modify it. open the article module and check that the link to the article is static. Note: If the. htaccess file is stored in the root directory and the webpage cannot be opened, the deletion of the. htaccess website can be opened normally, probably because the environment does not support it. |