Development HTAccess Help

Discussion in 'Software' started by Modsbywoz, 14 Dec 2011.

  1. Modsbywoz

    Modsbywoz Multimodder

    Joined:
    14 Oct 2009
    Posts:
    2,772
    Likes Received:
    264
    Boss is trying to do a 301 redirect for all http://mysite.co.uk addresses to http://www.mysite.co.uk via .htaccess on IIS.

    Now, I have this which has always worked for me on an Apache server. Unfortunately it doesn't work on IIS. Any ideas?

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^mysite\.co.uk
    RewriteRule ^(.*)$ http://www.mysite.co.uk/$1 [R=permanent,L]

    Cheers all!
     
  2. faugusztin

    faugusztin I *am* the guy with two left hands

    Joined:
    11 Aug 2008
    Posts:
    6,943
    Likes Received:
    268
  3. Zoon

    Zoon Hunting Wabbits since the 80s

    Joined:
    12 Mar 2001
    Posts:
    5,497
    Likes Received:
    630

Share This Page