`

Apache在Windows下使用Mod_rewrite模块

 
阅读更多
<iframe align="top" marginwidth="0" marginheight="0" src="http://www.zealware.com/csdnblog01.html" frameborder="0" width="728" scrolling="no" height="90"></iframe>

很简单的配置,确花了我一些时间,把它贴出来,给大家参考

1 在Apache/conf/http.conf中,打开
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c (看程序版本)

<directory files group></directory>

Options Indexes FollowSymLinks

裡面會包著一行:
AllowOverride None
把它改成
AllowOverride All

Order allow,deny
Allow from all

重新启动Apache使修改生效。

2 使用DOS的Copy命令建立.htaccess文件,如下
RewriteEngine on
RewriteBase /itscms
RewriteRule cms/.*?/.html cms.php



Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=663227


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics