Can Anyone Tell How To Apply Canonical Or Redirection Process?

Discussion in 'Search Engine Optimization' started by praveen1, Feb 14, 2013.

?

Canonical or 301 --which is best?

Poll closed Feb 21, 2013.
  1. Canonical

    0 vote(s)
    0.0%
  2. 301

    2 vote(s)
    100.0%
  1. #1
    Hello i am new to website admin panel. I have a site who follows www and non-www both. I want to apply redirection either canonical or 301 any .

    Can anyone tell how to start it and apply it properly to the site.

    Where to apply code in c-panel setting of site.
     
    praveen1, Feb 14, 2013 IP
  2. princess21

    princess21 Member

    Messages:
    101
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #2
    http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139066

    I think this should help ...
     
    princess21, Feb 14, 2013 IP
  3. kingsweb

    kingsweb Greenhorn

    Messages:
    121
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    23
    #3
    To redirect your website from non-www to www

    Create a .htaccess file and put it in your root directory

    In .htaccess file you have to write following code

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^domain.com [nc]
    rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
     
    kingsweb, Feb 14, 2013 IP