Jump to content

Forwarding


thqh

Recommended Posts

Is there an option to forward **** to www.**** because I found out that Google lists these 2 domains separately, and I only want www.**** to appear in the Google index.

I tried with another domain of mine and since I forwarded otherdomain.com to www.otherdomain.com, Google lists it right.

I tried to forward to a subdomain, but www is not allowed to be a subdomain.

Link to comment
Share on other sites

I know this has to do with DNS. You need to change some records about your domain but I'm not sure how you can do that but I'll move this post to a more appropriate forum so there's more chance someone sees it and answers.

 

Edit:

I just thought that you may probably use .htaccess to control what you want but I'm not sure how you'd do it, since htaccess is not my area. :lol:

Edited by TCH-Raul
Link to comment
Share on other sites

I answered this in your Help Desk ticket but want to post it here for future use as well.

 

I ran a Google search for redirect domain.com www.domain.com and there were several options. The best I saw was adding the following code to your .htaccess file which uses a Rewrite.

 

Options +FollowSymLinks

RewriteEngine on

RewriteCond %{HTTP_HOST} ^yourdomain\.com

RewriteRule ^(.*)$ http://www.******/$1'>http://www.******/$1 [R=permanent,L]

 

As always, make backups of your .htaccess file before modifying it so that you can go back to a working copy should there be problems. If you try using a Redirect / http://www.******/ you will get a loop and the site will not work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...