【发布时间】:2011-04-06 13:57:00
【问题描述】:
我正在尝试对查询字符串进行非常简单的重写,但我一点运气都没有。我需要离开
http:// example dot com/?ACT=jquery
到
http:// example dot com/index.php?ACT=jquery
这是我在 .htaccess 文件中编写的代码,它会引发内部服务器错误。我对整个 mod 重写业务真的很陌生,所以任何帮助都将不胜感激。
RewriteEngine On
RewriteCond %{query_string} ^(ACT=jquery)$
RewriteRule ^(.*)$ index.php/?ACT=jquery
【问题讨论】:
标签: string apache .htaccess mod-rewrite