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
- - - - -

Redirect Old Domain To New Domain


  • Please log in to reply
1 reply to this topic

#1 EGS

EGS

    HR 3

  • Active Members
  • PipPipPip
  • 67 posts

Posted 26 March 2009 - 08:33 PM

Hi, how can I do a simple redirect from an old domain to my new domain?
Everything will basically have same URL structure, so example x.com/page will go to new.com/page (page is same get it?).

How can I do this? smile.gif

#2 Randy

Randy

    Convert Me!

  • Moderator
  • 17,540 posts

Posted 26 March 2009 - 08:51 PM

On an Unix/Linux server running Apache with mod_rewrite enabled the .htaccess instruction placed on the old domain's hosting would look like:

CODE
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com [NC]
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

We are now a read-only forum.
 
No new posts or registrations allowed.