How do I redirect a URL using rewrite in .htaccess that has a question mark and forward slash where page.html is the variable?
May 19, 2013 in answer
ANSWER:
You could try using a simple Apache Redirect, like this:
Redirect 301 /index.php?/About.html http://www.newsite.com/about.html
It doesn’t use regular expressions, so shouldn’t care about the question mark and is simple to use. The only downside is that you’ll need one per page – but if the structure and names aren’t the same/similar on the new site, you might have to do that anyway.
Duncan Lock from http://webmasters.stackexchange.com/questions/48569

New Comments