Regarding canonical issue I am facing with my site.

Discussion in 'Google' started by sageshark, Sep 5, 2009.

  1. #1
    Hi Friends,

    I have to sort out a canonical issue I am facing for my website www.just-abhi.com

    As far as I have studied, google identifies following urls as separate pages:

    1. http://www.just-abhi.com
    2. http://just-abhi.com
    3. http://www.just-abhi.com/index.php
    4. http://www.just-abhi.com/
    5. http://just-abhi.com/

    I have created one .htaccess file and used the following code.

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^just-abhi.com [nc]
    rewriterule ^(.*)$ http://www.just-abhi.com/$1 [r=301,nc]

    Now when I type http://just-abhi.com in address bar, it sends me to http://www.just-abhi.com
    However I have observed that when I type http://www.just-abhi.com/index.php, it sends me to http://www.just-abhi.com/index.php.

    This means still two versions of my homepage are existing i.e.,
    1. http://www.just-abhi.com/
    2. http://www.just-abhi.com/index.php

    Can anyone tell how to solve this issue? Also I want my url to be - http://www.just-abhi.com and not http://www.just-abhi.com/

    Please help.

    Regards,
    Abhijit
     
    Last edited: Sep 5, 2009
    sageshark, Sep 5, 2009 IP