PHP, url rewriting with htaccess, and Microsoft IIS Url Rewriting

.htaccessiisPHPrewrite

I am used to working with Apache servers, so when mod_rewrite is enabled, I can create an htaccess file and use url rewriting.

Here's my htaccess file:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

now I've built this site that uses this url rewriting module but I have come to learn that it is a microsoft server. Can I use my htaccess file? Is there something I need to change to get it to work? How can I tell if url rewriting is set up on the microsoft server?

Update: Is there a free version that I can install that works with htaccess files?

Best Answer

ISAPI-Rewrite 3 from HeliconTech has very Apache-like syntax. The above config will work in ISAPI_Rewrite3 .htaccess without any modifications.

Related Topic