BeaverBlogg

April 9, 2007

Wordpress permalinks on IIS

Filed under: IIS, Picked up on the net — Karl @ 11:14 pm

I went looking for a simple way to use better permalinks then the standard ?p=123 when on IIS. As I understand it, this would be dead simple if running on an Apache server but in my case that isn’t an option.

There are lots of sites out there that explains how to setup Apache correctly or how to install different ISAPI filters and then remapping them to the old ?p=123 URLs. Finally I stumbled upon another site that actually just talked about the feature to go via index.php and adding an action to that. This wouldn’t require mod_rewrite or editing of the .htaccess file. Sounded great, since IIS doesn’t have any of those two.

So did it work? Of course not, it wasn’t really that easy. So right before dismissing that page as just another Apache solution I noticed a comment made by someone that called himself (or herself) “Cem” about how to do this on IIS. The solution was simple, you put your own php.ini in the root of your website and override two settings. Below is how the php.ini file should look.

[PHP]
cgi.fix_pathinfo = 1
cgi.force_redirect = 0

For those who want to read the original article and comments where I found this can do it here: http://blog.taragana.com/index.php/archive/wordpress-tip-on-permalink-options/

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress