【发布时间】:2014-04-04 11:13:27
【问题描述】:
我正在尝试通过 htaccess 执行简单的 301 重定向,重定向有效,但在 URL 中添加了“?folder=X”。
例如:
Redirect 301 /pets http://www.mydomain.com/discount-pet-products
返回:
http://www.mydomain.com/discount-pet-products?folder=pets
如何删除?
这是我的 htaccess 文件
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
Redirect 301 /pets http://www.mydomain.com/discount-pet-products
RewriteRule ^([0-9a-zA-Z-]+)$ load.php?folder=$1 [L]
【问题讨论】:
-
让你想要 X url 到 Y。那么 x & y 是什么?
-
抱歉,这个问题我没看懂?
-
也许您有一个包含
folder=X的查询字符串?是这样,这将有助于stackoverflow.com/questions/10708301/…
标签: php apache .htaccess mod-rewrite redirect