Jump to content

IIS7 and .htaccess Rewrite Rules [GoDaddy Hosting]


libertyct

Recommended Posts

Im having trouble getting ht-access redirects to work on the remote server which has IIS7 installed. I usually work on my localhost with WAMP and everything works fine:

 

RewriteEngine on

RewriteBase /

 

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ index.php

 

Whats the best approach to get an .ht-access file to work on IIS7? It looks like the server totally ignores it. I looked up the PHP info and it lists _SERVER["IIS_UrlRewriteModule"] = 1

 

There is definitely an IIS RewriteModule installed but how do I get it to read the .ht-access?

 

- Liberty

  • 1 month later...

I'm not very experienced with IIS7 but this page seems to have solved all of my .htaccess file issues. You'll need to import them into a rewrite rule.

 

I followed the guide from IIS7's website located here: http://learn.iis.net/page.aspx/470/importing-apache-modrewrite-rules/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.