读书人

一样的Rewrite写在.htaccess中正常

发布时间: 2012-09-25 09:55:59 作者: rapoo

同样的Rewrite,写在.htaccess中正常,写在http.conf中没起作用
RewriteRule (.*).htm mnks/index.php [NC,R,L]
RewriteRule (.*).php mnks/index.php?key=12345678901234567890123456789012 [NC,R,L]

写在http.conf中为:

XML code
<IfModule mod_Rewrite.c>RewriteEngine OnRewriteRule (.*).htm mnks/index.php [NC,R,L]RewriteRule (.*).php mnks/index.php?key=12345678901234567890123456789012 [NC,R,L]</IfModule>


这怎么办呀,服务器不让用.htaccess

[解决办法]
你确定在.htaccess中使用的时候起作用?

读书人网 >Apache

热点推荐