Avatar of Alicia St Rose
Alicia St Rose
Flag 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
Apache Web ServerWordPressSearch Engine Optimization (SEO)

Avatar of undefined
Last Comment
Alicia St Rose

8/22/2022 - Mon
Jason C. Levine

Site:

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

Looks like both links above now point to the new location now.
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
David S.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Alicia St Rose

ASKER
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?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Alicia St Rose

ASKER
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?
Alicia St Rose

ASKER
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
David S.

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
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Alicia St Rose

ASKER
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!
Alicia St Rose

ASKER
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?
Alicia St Rose

ASKER
This worked perfectly, and so far no problems since the switch over! Whew! Guess I did everything else correctly. Thanks, Kravamir for you help!
Your help has saved me hundreds of hours of internet surfing.
fblack61