htaccess重定向将变量传递给新URL

时间:2017-10-26 02:07:36

标签: .htaccess redirect mod-rewrite

如何停止将重定向传递给新网址?

我尝试过以下方法:

RewriteRule ^/camper-trailers/light-off-road/details/0/(.*) http://blackseriescampertrailers.com.au/camper-trailers.html? [L,R=301,QSA]

RewriteRule ^/camper-trailers/light-off-road/details/0/(.*) http://blackseriescampertrailers.com.au/camper-trailers.html? [L,R=301,QSD]

RewriteRule ^/camper-trailers/light-off-road/details/0/(.*) http://blackseriescampertrailers.com.au/camper-trailers.html?

他们都保留变量,前两个添加额外的?

示例:

http://blackseriescampertrailers.com.au/camper-trailers.html??format=html

0 个答案:

没有答案