libertyct Posted April 13, 2010 Share Posted April 13, 2010 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 Link to comment https://forums.phpfreaks.com/topic/198433-iis7-and-htaccess-rewrite-rules-godaddy-hosting/ Share on other sites More sharing options...
megosh Posted June 12, 2010 Share Posted June 12, 2010 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/ Link to comment https://forums.phpfreaks.com/topic/198433-iis7-and-htaccess-rewrite-rules-godaddy-hosting/#findComment-1070974 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.