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?

Hello,
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 (Site5.com)
2. Installed Wordpress, wp-content and database (Site5.com)
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 (Joker.com), to the new server (Site5.com) 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:

http://soladventure.com (old domain)
http://solfitnessadventures.com (new domain)
 
Thanks so much
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Site:

http://soladventure.com (old domain)
http://solfitnessadventures.com (new domain)

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

ASKER

They do but what about entering the site from here:

http://soladventure.com/stand-paddle-lake-powell-utah

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

Link to home
membership
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?
Okay,
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]
</IfModule>

# 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?
https://support.google.com/webmasters/bin/answer.py?hl=en&answer=83105
https://support.google.com/webmasters/bin/answer.py?hl=en&answer=34592
Okay,
So I added your code, Kravimir, to the hostgator and it works, of course!
But I like idea of pointing the domain to site5.com. 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...

Phooey!

Or! Should I just add an index.html to the addon at Site5.com 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!