Jump to content

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/

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.