htaccess重定向网址无效

时间:2018-07-18 17:16:43

标签: .htaccess joomla cpanel url-redirection

请帮助我如何使用.htaccess文件重定向网址

Old Url: mydomain.com/? 
GID=0FFB340425F74356BEAB3817BD8E70F9&AKH=111&desc=%D9%86%D8%B4%D8%B1
New Url: mydomain.com/test

1 个答案:

答案 0 :(得分:0)

应该是

RewriteCond %{QUERY_STRING} GID=0FFB340425F74356BEAB3817BD8E70F9
RewriteCond %{QUERY_STRING} AKH=111
RewriteCond %{QUERY_STRING} desc=%D9%86%D8%B4%D8%B1
RewriteRule (.*)  /test? [R=301,L]