Submit Your Article Forum Rules

Results 1 to 2 of 2

Thread: Problems for website address with and without www ?

  1. #1
    Junior Member
    Join Date
    Feb 2005
    Posts
    23

    Problems for website address with and without www ?

    Our site is http://www.enhancedwealth.co.uk. This is also accessible at http://enhancedwealth.co.uk

    I have just been told that this is a problem as the SE see this as duplicate content? As the domain is the same I think this is unlikely but does anyone have any views or experience with this situation?

    Thanks
    Sean

  2. #2
    Senior Member stymiee's Avatar
    Join Date
    May 2006
    Posts
    427
    Google sees your website with the 'www' (http://www.example.com) as a different page the without (http://example.com). Pages that link to the page without the 'www' are hurting your pages with the 'www' as the PR is essentially being split between the two pages. Fortunately this is easy to fix. Use a 301 redirect to redirect Google, and everyone else, to the 'www' page from the non 'www' page. The code would look similar to this (mod_rewrite required):

    Code:
    Options +FollowSymlinks 
    RewriteEngine On 
    RewriteCond %{HTTP_HOST} !^(www\.|$) [NC] 
    RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    To go from the 'www' to non 'www' use this code:
    Code:
    Options +FollowSymlinks 
    RewriteEngine On 
    RewriteCond %{HTTP_HOST}//s%{HTTPS} ^www\.(.*)//((s)on|s.*)$ [NC] 
    RewriteRule ^ http%3://%1%{REQUEST_URI} [L,R=301]
    [/quote]

Similar Threads

  1. Url address with redirect - Looking for problems?
    By robertk53 in forum Google Discussion Forum
    Replies: 6
    Last Post: 05-17-2006, 10:06 AM
  2. How to locate a website through IP address?
    By JuniorOnline in forum Internet Security Discussion Forum
    Replies: 8
    Last Post: 04-07-2006, 11:35 AM
  3. FRYO.com - Free Online Address Book Website
    By FRYO in forum Submit Your Site For Review
    Replies: 5
    Last Post: 08-23-2005, 04:50 PM
  4. IP address change for website.
    By modernsavage in forum Google Discussion Forum
    Replies: 2
    Last Post: 07-25-2005, 05:42 PM
  5. Log MAC Address of Website Visitors?
    By ChadHerring in forum IT Discussion Forum
    Replies: 0
    Last Post: 11-12-2003, 01:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •