How to remove canonical issue?

Discussion in 'Search Engine Optimization' started by strot, Apr 11, 2010.

  1. #1
    I have a website example.co.uk, My website has a canonical issue, when i typing in Browser. it is not redirecting to www.example.co.uk?

    If anyone know the solution to remove canonical issue would be highly appreciated. Thanks
     
    strot, Apr 11, 2010 IP
  2. theseomonk

    theseomonk Peon

    Messages:
    409
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The search engines do not care whether you use www or no www in URLs on your site. There is nothing in their ranking algorithms that causes them to rank a www version of a URL higher than a non-www version of the same URL.So the www and non-www are treated exactly the same by the search engines from a ranking perspective.

    Personally, I always pick www versions over URLs with no www because I think consumers have grown to expect www in URLs. Even though they likely type domain names into their browser address bar with no www more times than not, they expect to see the www version of domain names on business cards, advertisements, etc.

    I am explaining here how to fix this URL canonical problem.

    For Windows Users:
    Basically, you need to create an IIS reference for http://www.example.co.uk and one for http://example.co.uk. Then, you set the reference for www.example.co.uk to reference the files on your server. Next, set the non-www. reference to 301 permenantly redirect to www.example.co.uk as described in the seablick link – remember to add “$S$Q” to your domain. You may need to update the Host Header to include www.example.co.uk as well in the non-www. reference , which can be found under Properties -> HTTP Headers Tab -> Advanced button – > enter www.example.co.uk in the appropriate field.



    For Linux Users:
    Your task is MUCH easier. You simply need to create a file named – just like this – .htaccess – and upload to your home/index server space. It must be in the exact directory location as your index page and it must be named “.htaccess” or it will not work at all. You can create one named “htacces.txt” in Notepad, upload it, and rename accordingly. You might need to check with your hosting provider to see if you’re allowed to make such updates as well, some people have super secure hosting providers. You may also need check and make sure that Apache’s mod_rewrite.c turned ON. I promise, this is still WAY easier than Windows’ version.

    In your .htaccess file you simply need to put these few lines of code in, save it, and you’re done:

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

    That’s it, all the code needed, copy, paste, save, done.

    Like I said, the Linux lovers have it easy. That’s all the code needed to change any and every request for http://example.co.uk to http://www.example.co.uk AND it will capture any and all page references as well.

    Static Pages: http://site.com/contact.html will redirect just fine and dandy to http://www.site.com/contact.html

    Dynamic Pages: http://example.co.uk/index.php?method=569877 will redirect to http://www.example.co.uk/index.php?method=569877 as well.

    I hope it would help you lot.
     
    theseomonk, Apr 11, 2010 IP
  3. affilorama

    affilorama Active Member

    Messages:
    1,896
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    80
    #3
    You should also submit your site to google webmaster tools and then set your preferred URL (with www or without www)
     
    affilorama, Apr 11, 2010 IP
  4. jitendraag

    jitendraag Notable Member

    Messages:
    3,982
    Likes Received:
    324
    Best Answers:
    1
    Trophy Points:
    270
    #4
    affilorama gave a useful answer here. Just set you preferred URL in google webmaster tools if you can't get yourself to setup a redirect.
     
    jitendraag, Apr 12, 2010 IP
  5. johnkt

    johnkt Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hi really Good information, And i Also I agrred With You. And Really Good For SEO people. and Knowledgeble post.
     
    johnkt, Jun 10, 2011 IP
  6. Tessa_86

    Tessa_86 Peon

    Messages:
    281
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It is better to redirect your site using 301 permanent redirection. By uploading a .htaccess file we can easily redirect all the URLs.
     
    Tessa_86, Jun 10, 2011 IP
  7. derekad

    derekad Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    301 redirection is right way
     
    derekad, Jun 12, 2011 IP