Workaround for htaccess not working, allowoverride all open after 403 error

Source: Internet
Author: User
Tags 403 forbidden error

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

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.