Php htaccess的重定向临界性
我的一个网站面临着重定向的危险。 给你- 我必须改变方向 到 所以我写了htaccess重定向Php htaccess的重定向临界性,php,asp.net,apache,.htaccess,unix,Php,Asp.net,Apache,.htaccess,Unix,我的一个网站面临着重定向的危险。 给你- 我必须改变方向 到 所以我写了htaccess重定向 Redirect /antique/c-Furniture/m-Antique-Dining-Room-Tables.html /antique-c-Furniture-m-Antique+Dining+Room+Tables.html 所以它重定向到特定的url。但网站有一个默认规则集 RewriteCond %{REQUEST_FILENAME} !-f RewriteC
Redirect /antique/c-Furniture/m-Antique-Dining-Room-Tables.html /antique-c-Furniture-m-Antique+Dining+Room+Tables.html
所以它重定向到特定的url。但网站有一个默认规则集
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
因此,当我的重定向工作时,它会在重定向url的末尾添加路由。这意味着在重定向之后它会显示
http://local.port-all/antique-c-Furniture-m-Antique+Dining+Room+Tables.html?_route_=antique/c-Furniture/m-Antique-Dining-Room-Tables.html
但我只需要
http://local.port-all/antique-c-Furniture-m-Antique+Dining+Room+Tables.html
在重定向之后,我没有得到。我不能删除
_route_ from RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
因为它创建了站点的默认路由访问。所以我需要不同的解决方案
请帮忙
提前谢谢有专家能帮忙吗?专家没有回应!!!