How to make cononical redirec in .htacess file

Discussion in 'Search Engine Optimization' started by gseoanalyst, Oct 31, 2009.

  1. #1
    Hi,

    Any body knows how to make redirect of my cononical url

    i want move my these url abc.com and abc.com/index.htm

    to new location like www.abc.com
     
    gseoanalyst, Oct 31, 2009 IP
  2. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #2
    I'm just winging this on the fly... But the following rules should take care of both.

    1st you'll likely need the following at the top of the .htaccess in the root of your web:

    Then place the following rules in the .htaccess located in the root of your web.

    ]

    If you have other redirects in the root .htaccess, make sure the last two lines above that take care of non-www to www is at the end of the .htaccess.
     
    Canonical, Oct 31, 2009 IP
  3. gseoanalyst

    gseoanalyst Well-Known Member

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Thak you..
     
    gseoanalyst, Nov 5, 2009 IP