windows 开启apache Mod_rewrite重写模块

作者:小鱼的互联网观察 发布时间:July 14, 2009 分类:互联网观察

开启Mod_rewrite模块

Apache2\conf\httpd.conf

修改LoadModule rewrite_module       modules/mod_rewrite.so

去掉前面的#

替换AllowOverride None 为AllowOverride All

 

Apache2\conf\httpd.conf 文件最后添加

RewriteEngine On
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2

 

重启apache

不需要 .htaccess文件

 

标签: windows, apache, rewrite

互联网观察
windows 开启apache Mod_rewrite重写模块
本文地址:http://tianmeng.org/archives/20/

相关文章

文档信息

当前暂无评论 »

网站地图 京ICP证030173号