2014-09-01 88 views
1

舊網址: example.com?archive & ID = 1133352540 & start_from &子作用= showfull & UCAT = 2從URL重定向301帶問號的新URL

我想它重定向到: example.com/blog/post/

我試過在我的.htaccess的各種條件,似乎沒有任何工作。

回答

0

您可以使用此規則:

RewriteEngine On 
RewriteBase/

RewriteCond %{QUERY_STRING} ^archive&id=1133352540&start_from&subaction=showfull&ucat=2$ [NC] 
RewriteRule^blog/post? [L,R=301]