I've been scouring the web for an answer and I haven't found it yet. I'm currently using: RedirectMatch 301 ^(.*)$ http://www.newdomain.com Code (markup): to redirect all pages of old domain to the new domain root. However, pages on the old domain with parameters (like ?t=66) are being directed to the new domain with parameters (like newdomain.com/?t=66). Is there a way to get all pages to redirect to the domain root cleanly (without parameters)?
If you append ? to the redirect, it should clear the query params, or use the QSD (Query String Discard) flag at the end.
I ended up using the following solution suggested to me on another forum: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.example.com/? [R=301,L] Code (markup):
if you using wordpress, you can use redirect 301 plug in.. it's custom page to redirect any page domain,,