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

iis, php, url-rewriting

Solution

You can use your configuration as is, in Ionic's Isapi Rewrite Filter (IIRF).

IIRF is free, open-source.

Problem

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?

Original source