- [Isapi_rewrite] #这句是启用伪装静态规则
- Rewriterule/([0-9]+). html/contents.php?w=$1 [i]
Copy CodeAny address that begins with a number goes to Contents.php?w=$1, which represents the content received by the preceding ([0-9]+), and the subsequent representation is case-insensitive. So how do you use the alphabet:
- Rewriterule/([a-z]+). html/contents.php?w=$1 [i]
Copy CodeJust change the number to the letter range you want. How to represent all character symbols:
- Rewriterule/tag_ (. *). html/search.php?s=$1 [i]
Copy CodeSecond, the Linux pseudo-static file name is:. htaccess rules:
- Rewriteengine on #这句是启用伪装静态规则
- Rewriterule ([0-9]+). html$/contents.php?w=$1 [L,NC]
Copy CodeAny address that begins with a number goes to Contents.php?w=$1, which represents the content received by the preceding ([0-9]+), and the subsequent [L,NC] represents case-insensitive. Letters are expressed in the same way as Windows How to represent all character symbols:
- Rewriterule tag_ (. *). html$/search.php?s=$1 [L,NC]
Copy CodeThrough the above method, I believe you already know how to use pseudo-static rules, just put the above files in the space root directory can, the above method, as long as the space support, any language, ASP,. NET, PHP, JSP can be used, pseudo-static can make the page URL looks refreshing, as for SEO, controversial, I don't know if it works. |