Canonical Issues? need help..

Discussion in 'Search Engine Optimization' started by kalpitvthakkar, Jul 2, 2012.

  1. #1
    Hello all..

    My site open as mydomain.com and it can also be opened by www.mydomain.com, www.mydomain.com/index.php, mydomain.com/index.php so it can be accessed by four different URLs so how can i solve this issue?, can link canonical tag helps in it?, kindly explain me by giving examples.

    Thanks in advance
     
    kalpitvthakkar, Jul 2, 2012 IP
  2. PatrickLSO

    PatrickLSO Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Simply use htaccess to redirect all of those pages to the one you want. so if you want www.mydomain.com to be the main one. use 301 redirects to send all visitors to that url. It won't hurt your seo at all, in fact it will help it. I don't know the code off the top of my head, but do a google search for "htaccess index rewrite" or something along those lines.
     
    PatrickLSO, Jul 2, 2012 IP
  3. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #3
    you only use canonical tag when you want to show 4 separate URLs to your users, but want to avoid duplicate content penalty from search engines, so you tell them to index only one url of 4
    in your case your probably just want to redirect non-www to www and index.php to / using mod_rewrite in .htaccess
     
    atxsurf, Jul 3, 2012 IP
  4. abhinavkumar123

    abhinavkumar123 Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To over come the duplicate content from Search Engines then you can use canonical tag to redirect it. I do not know how to give you correct suggestion.
     
    abhinavkumar123, Jul 3, 2012 IP
  5. rahulbo

    rahulbo Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Could you tell me how to do it? I have been having the same issue too.
     
    rahulbo, Jul 3, 2012 IP
  6. seojig

    seojig Well-Known Member Affiliate Manager

    Messages:
    1,122
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Dear Kalpit,

    The best solution of you above problem is to implement 301 (permanent) redirection of all version of your home page to final one. For example; if you want to show www.domainname(dot)com version to search engine. Redirect all other version to this version using various method depending upon your hosting.

    - If your website hosted on linux sever you can implement permanent redirection using .htaccess file
    - if you website is hosted on windows server, you can implement this through webconfig file

    Regarding to canonical tag, as mentioned by atfsurf; it is only recommended when you are having different url with same content on your website.

    hope it will help !!
     
    seojig, Jul 3, 2012 IP
  7. cyndrella

    cyndrella Active Member

    Messages:
    112
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    #7
    The canonical issue can be solved out through a 301 redirection.
     
    cyndrella, Jul 3, 2012 IP
  8. kalpitvthakkar

    kalpitvthakkar Greenhorn

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #8
    thanks for some of the good suggestions, i have tried link canonical tag and 301 redirects in .htaccess file but canonical tag is not providing 301 redirects it only suggest to search engine about other canonical URLs, i have also tried to find out the code to redirect from non-www to www and paste it in to .htaccess file but it didn't work, i used the correct code as i have find out from many authenticated sources but it didn't work so kindly help me out for this problem..
     
    kalpitvthakkar, Jul 4, 2012 IP
  9. Forcit_Cample

    Forcit_Cample Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hi,

    Take a help with 301 redirection in which you can do prefer your domain for the the Google as well as visitors too other than also this tag <link rel="canonical" href="yourdomian dot com" />.
     
    Forcit_Cample, Jul 4, 2012 IP
  10. deeptigarg

    deeptigarg Peon

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    canonical tag is the best to redirect your site.
     
    deeptigarg, Jul 4, 2012 IP
  11. CI Carpet

    CI Carpet Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Use a 301 redirect to your main site. I just learned and implemented this myself.
     
    CI Carpet, Jul 4, 2012 IP
  12. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #12
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
     
    atxsurf, Jul 4, 2012 IP
  13. NareshReddy

    NareshReddy Member

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    48
    #13
    A canonical problem exists were a site can be found by using the www Version and the non www. version. This creates a problem because it can be seen as duplicate content by the search engines and one version can be removed from their indexes - the problem arises when the wrong version is deleted (this is usually the non www. version)

    Redirect WWW to non-WWW:

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

    Redirect non-WWW to WWW:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^(www\.yourdomain\.com)?$
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}$1 [R=301,L]
     
    NareshReddy, Jul 4, 2012 IP
  14. seojig

    seojig Well-Known Member Affiliate Manager

    Messages:
    1,122
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    140
    #14
    Can you explain how canonical tag can redirect your website?

    Kindly post reply if you know what you are writing !!

     
    seojig, Jul 5, 2012 IP
  15. webeveronpromo

    webeveronpromo Greenhorn

    Messages:
    118
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #15
    thanks for sharing the reply.
     
    webeveronpromo, Jul 5, 2012 IP
  16. mical

    mical Greenhorn

    Messages:
    63
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    18
    #16
    A canonical link element is an html element that helps webmasters prevent duplicate content issues by specifying the "canonical", or "preferred", version of a web page as part of SEO
     
    mical, Jul 10, 2012 IP