What's the issue for canonical issues for my pages?

Discussion in 'Search Engine Optimization' started by reninter, Jan 28, 2012.

  1. #1
    Hello , I just build a website (I'm not a professional web designer) and as web master I just checked there having some canonical issues like www and with out www or you can say index and with out index. So I'm bit confused is there any effect from googlebot? Any suggestion pls.
     
    reninter, Jan 28, 2012 IP
  2. mhovingh

    mhovingh Well-Known Member

    Messages:
    341
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    145
    #2
    For your www issue, just modify your .htaccess file to include the following (redirects www to non-www):

    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    
    Code (markup):
    For the other part, you just mean that you can access the home page by both going to your domain and by typing in the index file after it? That shouldn't be an issue. If you really want to, you can use a Rewrite in .htaccess for your index file.
     
    mhovingh, Jan 28, 2012 IP
  3. ppcxpert

    ppcxpert Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In simple words, to solve your canonical issue, you just need to redirect URL without "www" to the URL with "www".
     
    ppcxpert, Jan 28, 2012 IP