Go Back   Computer Forums > General Computing > Server Administration
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 09-21-2011, 12:07 PM   #1
Baseband Member
 
Join Date: Dec 2006
Posts: 81
Default 301 Redirect, old domain to new - PLEASE HELP!

Hello, I'm pulling my hair out over here trying to transition from an old domain to a new one. My host isn't helping me at all and the info I scrounge up is just leading to more confusion.

Here's my situation:

- I'm on the same server/host but I recently wanted to change to a new domain name; a slightly shorter and easier to type/remember type of domain name.

- My domains are from a different registrar than my actual website host. So this means two admin panels to deal with: more fuel on the fire.

- I want all www.olddomain.com pages to redirect permanently to www.newdomain.com pages.

- I also want to add code to the same .htacess that will take care of canonical issues i.e.
non-www to go to www. As it stands, this I got straightened out.

- By using the admin panel, the direct old domain name redirects to the new one. It's the other pages on Google that are a problem and I am getting 404 errors for. Ex: www.olddomain.com/info.html. I want it to go to www.newdomain.com/info.html.


Could somebody please help me understand this. What code do I use? WHat do I do with the old domain? Park it? Use the pointer in the admin & the forward option in the domain admin??? Don't bother with anything in the admins?

PLEASE HELP!!
__________________

somsto75 is offline   Reply With Quote
Old 09-21-2011, 03:48 PM   #2
JCB
Daemon Poster
 
JCB's Avatar
 
Join Date: Oct 2004
Posts: 1,302
Default Re: 301 Redirect, old domain to new - PLEASE HELP!

try adding the following to the old domains .htaccess

RewriteCond %{HTTP_HOST} !^www\.newdomain\.com
RewriteRule (.*) http://www.newdomain.com/$1 [L,R=301]

should redirect the page to the new site.
__________________

__________________
Check Out My Computer Related YouTube Channel @ Click Here
JCB is offline   Reply With Quote
Old 09-21-2011, 04:33 PM   #3
Baseband Member
 
Join Date: Dec 2006
Posts: 81
Default Re: 301 Redirect, old domain to new - PLEASE HELP!

I've tried I think most of the codes out there including this one. My main issue is that both domains point to the same server so any of these redirects create a loop. i tried even parking the old domain and that still didn't work.
I'm so burnt out on this I'm thinking of just cutting the loss (presence of about 6 years in ranking on google). Those dead pages will definitely ruin my ranking but I'm out of options.
somsto75 is offline   Reply With Quote
Old 09-21-2011, 06:07 PM   #4
JCB
Daemon Poster
 
JCB's Avatar
 
Join Date: Oct 2004
Posts: 1,302
Default Re: 301 Redirect, old domain to new - PLEASE HELP!

dont give up, I have done this before but I remember it was a pain to work out, Let me see if I can find what I did and I will post here later. What PR is ur site?
__________________
Check Out My Computer Related YouTube Channel @ Click Here
JCB is offline   Reply With Quote
Old 09-21-2011, 06:24 PM   #5
Baseband Member
 
Join Date: Dec 2006
Posts: 81
Default Re: 301 Redirect, old domain to new - PLEASE HELP!

I appreciate that very much, thanks... I'm assuming you mean postion ranking? It's usually in the top 10...
somsto75 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 10:10 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0