Thanks DK
I have found a solution to the query string problem but I'm still struggling with an instruction to redirect the remaining pages to the a single page.
For the query string problem
Code:
RewriteCond %{QUERY_STRING} ^string-after-the-question-mark-of-old-url$
RewriteRule ^index.php$ http://www.new.com/new? [L,R=301]
I will write a variation of that for several different pages. But I also need to redirect the rest of the site to the index page of the new site.
If I try the following:
Code:
Redirect 301 / http://www.new.com/
it keeps everything after the forward slash in the redirect, so
old.com/this becomes new.com/this
Perhaps this is because of the query string problem, I don't know. All the pages have the question mark. If so perhaps I need code that would fulfil this pseudo code:
Code:
RewriteCond %{QUERY_STRING} ^(Wild card)$
RewriteRule ^index.php$ http://www.new.com? [L,R=301]
Bookmarks