#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    1
    Rep Power
    0

    Need Redirection Code


    Friends I have a website on Windows IIS 6 server.. This site have canonical issue, it open with and without both www. I want to fix it, but unable to fix with .htacces file. Can you please tell me the code for it and also describe that how to use that code to fix it.


    Thanks.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    677
    Rep Power
    7
    That has nothing to do with code. If you DON'T want the site successfully accessed w/o the WWW, simply remove it. You will need to define a default site, however. I can type in ANY address, no matter how jibberish it may be, and as long as it points towards your server's IP, it's going to arrive viewing the default site on port 80.
    He who knows not and knows not he knows not: he is a fool - shun him. He who knows not and knows he knows not: he is simple - teach him. He who knows and knows not he knows: he is asleep - wake him. He who knows and knows he knows: he is wise - follow him

IMN logo majestic logo threadwatch logo seochat tools logo