In the PHP program directory has a htaccess file, this file plays the role of URL rewriting, but unfortunately, in my application does not work, Baidu a bit, found to be
AllowOverride all, this option is not open,
This option can only be written in
<directory/>
</Directory>, I opened this option in http.conf, resulting in a 403 Forbidden error on the Web site, and the results were found to be
<directory/>options indexesallowoverride none#allowoverride allorder allow,denyallow from All</Directory >
should not be in/This directory, write this option, should open this option in the application directory,
<directory "Http://www.cnblogs.com/WebRoot/Default" >
The relative directory here is for ServerRoot in the configuration file.# # Possible values for the Options directive is ' None ', ' All ', # or any combination of:# Indexes includes followsymlinks SymLinksIfOwnerMatch execcgi multiviews## Note that "MultiViews" must is named *explicitly*---"Options all" # doesn ' t gi ve it to you.## the Options directive is both complicated and important. see# http://httpd.apache.org/docs/2.0/mod/core.html#options# for more information.# options Indexes Followsymli Nks # # AllowOverride Controls What directives is placed in. htaccess files.# It can be ' all ', ' None ', or any Combinati On the keywords:# Options FileInfo authconfig limit# allowoverride All # # Controls who can get stuff from this ser ver.# Order Allow,deny allow from all </Directory>
If this option is turned on, it does not work, so you have to check that the rewrite option is open in httpd.conf.
LoadModule Rewrite_module modules/mod_rewrite.so
Htaccess workaround that does not work, allowoverride 403 error when all is open