WordPress Permalinks on IIS6

Not even permalinks

Recently, I had to set up WordPress on an IIS6 machine. Yes, WordPress does work on IIS6, believe it not. The only really tricky bit is getting fancy permalinks to work, so that urls looks like instead of I used IIRF to get mod_rewrite like functionality, as the supported IIS Rewrite isn’t available until IIS7. It’ll take the same .htaccess configuration as mod_rewrite on Apache, with one very important difference; you have to add a U to the [L] in the final redirect. This passes along a HTTP_X_REWRITE_URL header to PHP, which WordPress uses internally to decide what to show. Your IIRF.ini will end up looking like this:

RewriteEngine On
RewriteBase / #whatever your virtual root is
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /index.php [L,U]

(image found on


1 reply on “WordPress Permalinks on IIS6”

Comments are closed.