如果查询字符串匹配,我想重定向到另一个URL

时间:2015-08-17 18:04:47

标签: php .htaccess mod-rewrite url-rewriting url-redirection

http://www.abcd.com/studio/index.php?mod=search&do=confirm_offer&offer_id=119

如果匹配" /studio/index.php?mod=search&do=confirm_offer&offer_id=119"我想重定向到" http://abcd.com/checkout"

我已经尝试过两次

#RewriteCond %{QUERY_STRING} !^http://www.fitfox.de/studio/index.php?mod=$1&do=confirm_offer&offer_id=$2 [L]
#RewriteRule ^(.*)$ http://www.fitfox.de/checkout/index.php [L,R=301]

#RewriteCond %{QUERY_STRING} ^mod=search&do=confirm_offer&offer_id=119$ [L]
#RewriteRule ^studio/index.php$ http://www.fitfox.de/checkout/ [R=301,L]

0 个答案:

没有答案