.htaccess redirect one domain to another incliuding specific query string
问题 basally I need to redirect http://www.old-domain.com/news.php?NewsID=30888 to http://www.new-domain.com/news.php?NewsID=30888 using htaccess however only if the query string is as above. Any other query str ings I need to continue to go to http://www.old-domain.com/news.php?NewsID=whatever_querystring. So I need to match the 30888 and then redirect to a whole new site including the news.php?NewsID=30888 . Thanks in advance 回答1: Put this code in your .htaccess and try; Options +FollowSymlinks