Apache supports the. htaccess pseudo-static file method in CentOS.

Source: Internet
Author: User

Apache supports the. htaccess pseudo-static file method in CentOS.

No matter when it is necessary, at least the old man tried to install the wordpress test site after "CentOS6 installation LAMP environment setup tutorial" the day before yesterday, resource occupation is good. After all, there are no other components similar to the installation package or too many components installed on the WEB panel. You only need to install and operate the environment as needed, but there is a problem, after fixed links are set in WORDPRESS, the pseudo-static mode does not start. You need to manually start the Apache pseudo-static mode after checking the Q &.

1. Edit the httpd. conf file

A-in the httpd. conf file in the etc/httpd/conf/directory, find:

LoadModule rewrite_module modules/mod_rewrite.so

If there is # above, cancel it. If not, do not modify it by default.

B-set AllowOverride

Find the following script in httpd. conf.

<Directory/>
Options FollowSymLinks
AllowOverrideNone
</Directory>

Change None to All.

2. Restart the Apache Environment

Service httpd restart

In this way, we confirm that there is a. htaccess file under the root directory of the website, and the pseudo-static state takes effect.

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.