Linux starts Apache to support .htaccess pseudo-static file method

888u

Last update at :2024-06-24,Edit by888u

No matter when the need arises, at least I tried to install wordpress myself after the "CentOS6 Installation LAMP Environment Building Tutorial" the day before yesterday. The installation of the test site was no problem, and the resource consumption was better. After all, there was no Similar to the installation package or WEB panel, Gulu installs too many other components. You can just install the operable environment according to your own needs. However, there is a problem. After setting the fixed link in WORDPRESS, the pseudo-static will not start. After consulting the Q&A, you need to manually Start Apache pseudo-static.

First, edit the httpd.conf file

A – Find the httpd.conf file in the etc/httpd/conf/ directory:

LoadModule rewrite_module modules/mod_rewrite.so

If there is a # in front of it, cancel it. If there is no #, it will default to no modification.

B – Set AllowOverride

Similarly find the following script in httpd.conf

Options FollowSymLinksAllowOverride None

Change None to All

Second, restart the Apache environment

service httpd restart

In this way, we make sure that there is an .htaccess file in the root directory of the website, and the pseudo-static is effective.

Recommended site search: free website domain name application, server purchase, Wanwang free domain name, Hong Kong cn2 server, is there any charge for domain name registration, independent IP space, godaddy domain name registration, Taiwan server rental local IP, Hong Kong host high defense, < /p>

Linux starts Apache to support .htaccess pseudo-static file method

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码