Welcome Guest, Not a member yet? Register   Sign In
Removing Index.php on IIS -How to
#1

[eluser]Unknown[/eluser]
Just to share this with anyone that needs it. If you are stuck having to use PHP on an IIS server (poor sole!) like I was the last few days - then you may want to know that there is a free ISAPI filter available for processing .htaccess-type url rewrites to remove your index.php references in your urls.

The filter name is "Ionics Isapi Rewrite Filter" and can be downloaded from http://www.codeplex.com/IIRF.
- it is a simple install (though manual)
- supports virtual domains
- has no dependencies (.net, etc.)
- same syntax as Apache .htaccess (ie. can copy past rules/conditions from .htaccess!!)
- good logging features and testing programs for troublshooting rewrite rules/conditions

Just download the zip file and review the readme file - it contains all the installation instructions you will need for IIS versions 6+. It does work for IIS 5, but the instructions fail to mention that you have to install the .dll and .ini file into the server's system32 folder.

Note: after you have it working, don't forget to decrease the logging value to 0 or 1, otherwise you will quickly run out of diskspace - the filter does not manage its log files!

Hope this helps someone.

(Is this were this type of information belongs - or should I have posted it to the wiki?)




Theme © iAndrew 2016 - Forum software by © MyBB