Link to home
Start Free TrialLog in
Avatar of Alicia St Rose
Alicia St RoseFlag for United States of America

asked on

Moved site to new domain on new hosting service. Did I do this correctly?

This is the first time I've moved an established site to a new domain and hosting company. I didn't want to lose any link juice or upset the page ranking too much, so I did a lot of research to make sure I did this right. I'm coming here to double check with some experts.

Here's what I did:

1. Pointed new domain name to new hosting provider (
2. Installed Wordpress, wp-content and database (
3. At old hosting company (Hostgator), I added a 301 redirect to .htaccess, removed files and database

I have a few questions:

1. Do I need to forward the old domain, which is a third independent registrar (, to the new server ( or will the 301 redirect do the trick at Hostgator.
2. What happens when the Hostgator account is closed?
3. Did I F#%$ something up? Right now when I go to any internal pages (initial visit to site) I get a 404 page not found, because there are no files etc.. I though the 301 redirect was supposed to kick in...

Site: (old domain) (new domain)
Thanks so much
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Site: (old domain) (new domain)

Looks like both links above now point to the new location now.
Avatar of Alicia St Rose


They do but what about entering the site from here:

Shouldn't that redirect?
Avatar of David S.
David S.
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is what I have in my .htaccess:

RewriteCond %{HTTP_HOST} ^soladventure\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.soladventure\.com$
RewriteRule ^/?$ "http\:\/\/solfitnessadventures\.com\/" [R=301,L]

Open in new window

It looks a bit different, yet similar.  I don't see RewriteEngine On line.

Should I change it?
I'm also having a problem verifying the old domain in Google Webmaster tools. I'm trying to switch the domain in Webmaster Tools.
Should I replace the files and database on the old site until that's done?
Here's the full code:

RewriteOptions inherit
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

RewriteCond %{HTTP_HOST} ^soladventure\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.soladventure\.com$
RewriteRule ^/?$ "http\:\/\/solfitnessadventures\.com\/" [R=301,L]

Open in new window

I see RewriteEngine On in the wordpress section.
Maybe I should just delete this wordpress stuff, right? That might be causing the problem, since the files are gone. Keep the RewriteEngine On
The problem is in the rewrite rule. It only matches when no folder or file is specified in the path. I recommend you use the version I posted.

Yes, if you've removed WordPress, you should remove the directives in its section except for "RewriteEngine On".

As to Google Webmaster Tools, have you read these two pages?
So I added your code, Kravimir, to the hostgator and it works, of course!
But I like idea of pointing the domain to So I've done that. Now do I need to create a .htaccess file in an addon domain so that I can add the code there? I'm assuming that would be the case.

This is pretty new to me and makes me really nervous. My client spent 5 years building up her site SEO-wise!
Hmm...Since I'm redirecting the site, I need to add the Webmaster Verification code in the form of meta data to the head of the document. All files are gone.
So I probably have to add the wordpress files and database back...


Or! Should I just add an index.html to the addon at and add the meta code there?
Should I open another question for this Webmaster tools stuff?
This worked perfectly, and so far no problems since the switch over! Whew! Guess I did everything else correctly. Thanks, Kravamir for you help!