Targets of pseudo-static ss pages
URL: http: // localhost/index. php? M = content & c = rss & siteid = 1
Configured URL: http: // localhost/rss.html
Implementation method:
1. Enable rewrite module
Find the Apache configuration file httpd. conf.
1. LoadModule rewrite_module modules/mod_rewrite.so
Comment out the "#" of this sentence.
2. Change AllowOverride none to AllowOverride all.
Note: after changing the configuration file httpd. conf, do not forget to restart the apache server.
II. Add url routing rules
Add the following code to the. htaccess file in the root directory (if not, create it by yourself:
The code is as follows: |
Copy code |
<IfModule mod_rewrite.c> RewriteRule into rss.html index. php? M = content & c = rss & siteid = 1 RewriteEngine on RewriteCond % {REQUEST_FILENAME }! -D RewriteCond % {REQUEST_FILENAME }! -F RewriteRule ^ (. *) $ index. php/$1 [QSA, PT, L] </IfModule> |
Summary: This is a non-paging phpcms v9 pseudo-static setting. You do not need to add url rules in the backend extension. It is much simpler than the pseudo-static setting that requires paging. How can I implement the pseudo-static state of the phpcms v9_4X tag? I have found that some netizens have a lot of problems. Maybe I will give a summary of the pseudo-static phpcms v9 in the future.