Apache啟用URL重寫模塊


需要對apache/conf/httpd.conf文件做如下修改:

1、將# LoadModule rewrite_module modules/mod_rewrite.so前的#號去掉;

2、AllowOverride None改為AllowOverride All

 

修改完成后,重啟Apache,即可在站點增加.htaccess文件即可。

 

另:

1、Windows下自由創建.htaccess文件的N種方法

http://www.zendstudio.net/archives/create-htaccess-file-in-windows/

 2、.htaccess在線編輯器

 

http://www.htaccesseditor.com/sc.shtml 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM