Non Www To Www

Discussion in 'Search Engine Optimization' started by telboy, May 6, 2009.

  1. #1
    So yeah, im really getting annoyed about this, It appears there isn't a working way to redirect It on a microsoft hosting.

    Any help?
     
    telboy, May 6, 2009 IP
  2. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #2
    Nigel Lew, May 6, 2009 IP
  3. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #3
    If your hosting will allow it, you can buy ISAPI Rewrite and install it... $99/server... 99% compatible with Mod Rewrite .htaccess files. I use it on a 30+ web server farm and love it.

    If not then IIS 7 DOES have a built in feature similar to Mod Rewrite, but I haven't seen it or used it. If your host supports IIS 7 hosting you should be able to do it.

    If you're using .ASP or .NET you can create an include file and include it at the top of every page so that it runs everytime a page loads and checks the HTTP Host... If not www then 301 redirect to www...

    As a last resort you can generate a <link rel="canonical" href="WWWVersionOfURLforCurrentPage">. This won't fix it in the browser but at least the www version of each URL will get credit for all inbound links.
     
    Canonical, May 6, 2009 IP
    Nigel Lew likes this.
  4. telboy

    telboy Active Member

    Messages:
    65
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    98
    #4
    Thanks, I can upgrade to IIS 7, and will do now.

    If it works, i swear, you can have my first born ;)
     
    telboy, May 6, 2009 IP
  5. telboy

    telboy Active Member

    Messages:
    65
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    98
    #5
    Hmm, Well i updated, to iis 7, And i assume i needed to edit the web.config file, but i don't actually have one in my root file ? :/

    Any help?
     
    telboy, May 7, 2009 IP
  6. sultanofseo

    sultanofseo Notable Member

    Messages:
    9,930
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    265
    #6
    most hosting providers offer both windows and linux hosting. you can switch to linux hosting and setup htaccess for 301 redirect which will take care of the issue.
     
    sultanofseo, May 7, 2009 IP
  7. rashida

    rashida Active Member

    Messages:
    1,429
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #7
    rashida, May 8, 2009 IP
  8. ravont

    ravont Peon

    Messages:
    196
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Fortunately, you can easily address this problem by adding a small amount of code to your Web root directory’s .htaccess file to set up a 301 redirect from example.com to www.example.com or vice versa.
     
    ravont, May 8, 2009 IP
  9. Alan Smith

    Alan Smith Active Member

    Messages:
    1,263
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    78
    #9
    Alan Smith, May 8, 2009 IP