Web Design Forum: Pointing non www. to www. - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Pointing non www. to www.

#1 User is offline   MWP 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 43
  • Joined: 14-July 11
  • Reputation: 0
  • Gender:Male
  • Location:UK
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 01 September 2011 - 10:58 PM

I recently learned it could be beneficial to have my non www. site pointing to www. and understand that I need to change the .htaccess (I think!). Now I have my hosting with 1&1, so mailed their help centre on how to go about this. The response they sent back said "your site is automatically accessible on both the www. and non www. versions. This is already set up when you sign up and both domain versions are working correctly".

That seemed to me that they misunderstood what I was asking so I mailed again asking if I can do a permanent redirect from the non www. to the www. to avoid the possibility of duplicate content and received the same message back!

Has anyone else had any dealings with this subject and 1&1 and have any advice, and is the risk of my site being classed as duplicate content really that likely??

Many thanks.
0

#2 User is offline   TomCash 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 192
  • Joined: 15-March 09
  • Reputation: 30
  • Gender:Male
  • Location:Wolverhampton, England
  • Experience:Web Guru
  • Area of Expertise:Web Developer

Posted 02 September 2011 - 08:21 AM

It's important you tell Google Webmaster tools which version of the website you wish to refer to. Then also build all your links to reflect that.

As for one and one - there's an easy way around this.

If your route directory for your website, where all of your files sit.

Create or edit your .htaccess file to contain the following lines of code:

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


That will send anyone from the http://yoursite.com to www.yoursite.com

Hope this helps!
1

#3 User is online   brightonmike 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,996
  • Joined: 27-June 11
  • Reputation: 340
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 02 September 2011 - 08:56 AM

They're right, they automatically permanently redirect your non-www to your www. I know, because I have 1&1 and it happened for me.

There's an easy way to find out: http://www.seoconsul...r-headers-tool/

If you get a 301 response when you use your non-www domain, then a permanent redirect is already setup.

You don't need to do anything.
1

#4 User is offline   MWP 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 43
  • Joined: 14-July 11
  • Reputation: 0
  • Gender:Male
  • Location:UK
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 03 September 2011 - 12:18 AM

View Postbrightonmike, on 02 September 2011 - 08:56 AM, said:

They're right, they automatically permanently redirect your non-www to your www. I know, because I have 1&1 and it happened for me.

There's an easy way to find out: http://www.seoconsul...r-headers-tool/

If you get a 301 response when you use your non-www domain, then a permanent redirect is already setup.

You don't need to do anything.


Thanks for that link. I'm getting a 200 code response so looks like I'll need to change it.
0

#5 User is offline   MWP 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 43
  • Joined: 14-July 11
  • Reputation: 0
  • Gender:Male
  • Location:UK
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 03 September 2011 - 12:30 AM

View PostTomCash, on 02 September 2011 - 08:21 AM, said:

It's important you tell Google Webmaster tools which version of the website you wish to refer to. Then also build all your links to reflect that.

As for one and one - there's an easy way around this.

If your route directory for your website, where all of your files sit.

Create or edit your .htaccess file to contain the following lines of code:

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


That will send anyone from the http://yoursite.com to www.yoursite.com

Hope this helps!


Perfect. All done and working. Thank you!
0

#6 User is offline   TomCash 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 192
  • Joined: 15-March 09
  • Reputation: 30
  • Gender:Male
  • Location:Wolverhampton, England
  • Experience:Web Guru
  • Area of Expertise:Web Developer

Posted 05 September 2011 - 08:23 AM

Hey, no problem! Thanks for the +1! :)
0

#7 User is offline   handatravel 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 20
  • Joined: 13-September 11
  • Reputation: 0
  • Gender:Male
  • Experience:Nothing
  • Area of Expertise:Designer

Posted 13 September 2011 - 07:48 AM

i think pointing to www backlinks is more useful than without www
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users