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.