My phpcms v9 website host is named Hua Xia, the server is nginx1.2.1, and the pseudo static rules I write in custom pseudo static files are
Rewrite ^ tag/(. *) index. php? M = content & c = tag & a = lists & tag = $1 last;
But it does not work. Ask customer service. The concept of pseudo-static connection is not clear.
After some exploration, the correct pseudo-static rules in nginx are written as follows:
The code is as follows: |
Copy code |
Rewrite ^/tag/(. *) $/index. php? M = content & c = tag & a = lists & tag = $1 last; |
The previous part comes fromChat blogAnd then add all the other pages in detail.
The code is as follows: |
Copy code |
Location /{ ### PHPCMS pseudo-static rewrite rules Rewrite ^ (. * show-(%0-9%%%%%%-(%0-9%%%%%%.html $1/show. php? Itemid = $2 & page = $3; effect show-12-120-1.html show- id-document id-page count .html Rewrite ^ (. * javaslist-(%0-9%%%%%%-(%0-9%%%%%%.html $1/list. php? Catid = $2 & page = $3; effect content-12-120-1.html content- id-document id-page number .html Rewrite ^ (. * show-(%0-9%%%%%%.html $1/show. php? Specialid = $2; Rewrite ^/tag-([^.] * has -(%0-9%%%%%-(%0-9%%%%%%.html/index. php? M = content & c = tag & catid = $2 & tag = $1 & page = $3; Rewrite ^/comment-(%0-9%%%%-(%0-9%%%%%%%-(%0-9%%%%%%.html/index. php? M = comment & c = index & a = init & commentid = content _ $1-$2-$3; Rewrite ^/([^.] * login .html/index. php? M = member & c = index & a = $1; |
A small tutorial reminds you that, of course, we can also use. htaccess to implement it.