Pseudo-static Rss configuration in phpcms v9

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.