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 www.foo.com/2011/06/my-awesome-post
instead of www.foo.com/index.php?p=6
. 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 tattoodesigns-design.com)
Advertisements