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 

 

 

 

posted @ 2012-02-25 22:36  deoing  阅读(8099)  评论(0编辑  收藏  举报