【发布时间】:2015-02-10 20:51:42
【问题描述】:
Options +FollowSymlinks
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|uploads|tt|application/modules/.*/assets|resources|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /index.php?/$1 [L]
Redirect 301 /testurl /home/
这是我的 .htaccess 文件,用于检查 CodeIgniter 项目中的 301 重定向。
301 重定向工作正常,但问题在于 URL。当我尝试...
http://parcmobilenew.eworkdemo.com/testurl
...它会重定向到 .htaccess 中提到的主页,但它需要像这样的查询字符串中的请求 URL...
http://parcmobilenew.eworkdemo.com/home?/testurl
如何使.htaccess 在重定向时不执行此操作?
【问题讨论】:
标签: php .htaccess codeigniter mod-rewrite redirect