Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php htaccess的重定向临界性_Php_Asp.net_Apache_.htaccess_Unix - Fatal编程技术网

Php 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

我的一个网站面临着重定向的危险。 给你-

我必须改变方向 到

所以我写了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
    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] 
因为它创建了站点的默认路由访问。所以我需要不同的解决方案

请帮忙


提前谢谢

有专家能帮忙吗?专家没有回应!!!