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; >
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
"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:
In the last line mode, enter::% s/allowoverride none/allowoverride all/g
You can enter.
】
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; >
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