Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

All Pages Old Domain To New Domain Root *without Parameters*


  • Please log in to reply
2 replies to this topic

#1 Bernard

Bernard

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 302 posts
  • Location:Friendswood, TX

Posted 14 October 2011 - 01:55 PM

I've been scouring the web for an answer and I haven't found it yet. I'm currently using:
CODE
RedirectMatch 301 ^(.*)$ http://www.newdomain.com
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 direct to the domain root cleanly (without parameters)?

#2 Bernard

Bernard

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 302 posts
  • Location:Friendswood, TX

Posted 17 October 2011 - 04:36 PM

FWIW, I found a solution:
CODE
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.example.com/? [R=301,L]


Cheers.

#3 Michael Martinez

Michael Martinez

    HR 10

  • Active Members
  • PipPipPipPipPipPipPipPipPipPip
  • 5,087 posts
  • Location:Georgia

Posted 17 October 2011 - 05:36 PM

Thanks for sharing. I hate having to track down .htaccess rule techniques.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

SPAM FREE FORUM!
 
If you are just registering to spam,
don't bother. You will be wasting your
time as your spam will never see the
light of day!