日期:2014-05-16  浏览次数:20737 次

同样的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 On

RewriteRule (.*).htm mnks/index.php [NC,R,L]
RewriteRule (.*).php mnks/index.php?key=12345678901234567890123456789012 [NC,R,L]
</IfModule>



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

------解决方案--------------------
你确定在.htaccess中使用的时候起作用?