How Apache turns on the rewrite feature

Source: Internet
Author: User

If you turn on Apache's rewrite feature:


1. Modify the httpd.conf file:


2, loading Apache rewrite module, find the following option, remove the previous # comment


650) this.width=650; "class=" Exp-image-default "alt=" How to open Apache rewrite function "src=" http://e.hiphotos.baidu.com/exp /w=500/sign=98f4404239292df597c3ac158c315ce2/7e3e6709c93d70cf37dd2f60fbdcd100baa12bb3.jpg "style=" border:0px; >              



    1. 3, after the 2nd step operation, at this time the rewrite function has been opened, but to use the rewrite function in the program directory, but also to configure the following selection, allowing distributed configuration files, that is,. htaccess file dynamic configuration modifications to Apache

    2. "You need to change all allowoverride none in the httpd.conf file to: allowoverride all; I provide a replacement method that can quickly replace the full text:

    3. In the last line mode, enter::% s/allowoverride none/allowoverride all/g

    4. You can enter.

    5. 650) this.width=650; "class=" Exp-image-default "alt=" How to open Apache rewrite function "src=" http://d.hiphotos.baidu.com/exp/w= 500/sign=874e24b3f31f3a295ac8d5cea925bce3/c8177f3e6709c93d7bd58b9a9c3df8dcd10054b3.jpg "style=" border:0px; >


    6. 4, set up, restart Apache, done!


This article is from the "Elephant" blog, make sure to keep this source http://zlyang.blog.51cto.com/1196234/1788758

How Apache turns on the rewrite feature

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.