permalinks on IIS
Saturday, June 11th, 2005I got permalinks working on IIS - I consider this a small accomplishment, because I was unable to find an easy way to do it on the support boards :-).
It’s actually just a simple 404 hack. I created a file called wp-404-handler.php and then set IIS to use that as the 404 handler. File contents:
< ?php
$_SERVER['REQUEST_URI'] = substr($_SERVER['QUERY_STRING'], strpos($_SERVER['QUERY_STRING'], ':80')+3);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include('index.php');
?>
That’s it! It’s not very robust, but it gets the job done. It even works with Scott Yang’s Permalink Redirect plugin.