How to change the domain that appears on google search

Snowflake

New member
Hi,

I am going to use example urls that aren't my site because I don't want to publicly post about it on the web since the site is of a public person, hope that's ok.

I have a new domain on my site which is exampledomain.com but when I search for this person on google the domain that shows for my website is the old one - that I parked on cpanel. I want people to still be able to check the site using the old domain but I want them to see that I've changed and there's a new domain - exampledomain.com... Is there a way to use it as a redirect maybe? They use the old domain to access but it will load the page and change the Url to the new one in the address bar?

And also, I really want to change it on google as well. It should show the exampledomain.com and it doesn't, it shows the other one.

I have no idea how to solve this.

Thanks!
 

un4saken

Administrator
If you still have access to your old domain, put this code to your old .htaccess file

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

Snowflake

New member
The old domain is parked on gigarank's servers... It's on my cpanel account, so I think I don't have access to the htaccess anymore... :huh:

Does it work if I add that in the current htaccess file?

This is regarding my paid hosting here but I posted here on the forum because it wasn't directly related to gigarank. Should I open a ticket instead?
 

Snowflake

New member
Did any of you do something on my account to change this? Because I just googled the person and it's showing the domain I wanted, not the old one anymore!!! yay But I didn't do anything... :confused:
 

GigaGreg

Moderator
Staff member
No, why would we do something?
I think that it does automatically as your website could refresh and Google robots would pick new data and display it on Google Search.
 

Snowflake

New member
Oh okay, I was thinking about removing the second domain from the addons option on cpanel, but now it won't be necessary. :)
 

jaran

New member
Vera said:
Did any of you do something on my account to change this? Because I just googled the person and it's showing the domain I wanted, not the old one anymore!!! yay But I didn't do anything... :confused:

Google did it with their magic. Believe me.


LMAO
 

Snowflake

New member
rockforlife said:
take the old domain, and set it up as a forwarder at your domain registrar.

Never even thought of that! Will do that, seems to be the best option in this case. Thank you
 

GigaGreg

Moderator
Staff member
@"Vera" I am going to close this thread, just incase of spam. If you get any problems related to this again, please make a new thread.