Installing WordPress on IIS is easy, but getting it working perfectly is more difficult.
Without extra work, you cannot achieve nice looking perma links like:
http://clifgriffin.com/2008/10/02/some-post-title
Instead, you have to use something like:
http://clifgriffin.com/index.php?p=95
or slightly better,
http://clifgriffin.com/index.php/2008/10/02/some-post-title
Unfortunately, search engines don’t like either of the above.
In an effort to fix this, I began searching for the easiest way to fix this. There are several ways you can do it.
- Install ISAPI_Rewrite Professional (Lite version doesn’t work)
- Use a custom 404 page. (works well, but kind of a hack)
- Use WordPress URL Rewrite.
Both 1 and 3 emulate mod_rewrites functionality. 3 is custom written to support only wordpress.
I tried the custom 404 page. It worked for the most part but some plugins seemed to have troubles with it (it manually sets the POST information and then includes the index page…very much a hack). I asked my host to install ISAPI_Rewrite, but they weren’t ready to shell out $99 on my behalf. So, I finally asked them to install WordPress URL Rewrite. In a couple of hours they obliged me and everything is working fine.
The only problem I’m having now is that my custom 404 page (built into the wordpress theme) isn’t working currently. I’ve posted on the binaryfortress forums and hope to resolve this soon.
In such time I will update this post. In the meantime, these are the 3 most reliable methods of doing this. I hope this gives you a jump start.
#1 by Ryan Portnoy at October 14th, 2008
I can help you with this… It would take more time to type it than to explain it. Do you have root access to your server? If so, let me know and I'll tell you how to get this working. I have two servers at work running this way.
#2 by Clifton Griffin at October 14th, 2008
You're using windows as your server os? Does dan know??
I don't have admin access but my host is really good at changing settings for me.
#3 by Dan Portnoy at October 14th, 2008
I'm not a microsoft hater… that much
#4 by Ryan Portnoy at October 14th, 2008
I don't want you to get the wrong idea… I work for the school system and they are a microsoft shop. I don't have a problem working with IISS when I'm cashing my paycheck. Yes I'm a sellout.
Anyway, you essentially want your host to turn on the Apache mod_rewrite module. It's a super easy thing to do and it should not be a security problem for your host. At least, I've never heard of it being a problem in my research.
#5 by Jennifer Washburn at October 14th, 2008
you cute little nerds…
haha
#6 by Clifton Griffin at October 14th, 2008
After more investigation, it seems that IIS7 has URL rewriting.
I'm not sure what module you're using in IIS…the only ones I can find cost money? Everything is actually working now except my custom 404s…which I've fixed using a small hack.
I'm looking into transfering my account to a server 2008 box and using the IIS rewrite functionality.
Thanks for the feedback.
#7 by Clifton Griffin at October 14th, 2008
People are apparently clicking the links above. Here's a hint: Those aren't actual posts.
#8 by Ryan Portnoy at October 14th, 2008
Ok I totally read your initial posting wrong. It never dawned on me that you were solely running IIS on that server. I am running IIS and Apache side by side and that rewrite module I was referring to is an Apache-only module. Sorry if that confused the crap out of you. You are right in your thinking about IIS7 btw.
#9 by alex at October 22nd, 2008
I am using mootools and when I activate permalinks ie comes up with an error like “no window.addEvent”
anybody had problems with javascript and permalinks?
#10 by clifgriffin at October 22nd, 2008
Are you using a plugin to implement mootools? (I haven’t used mootools before)
How are you implementing permalinks? Is this on IIS?