Under usual circumstances, hosting WordPress on IIS7 would not normally allow permalinks to be used. There are some commercial solutions, including the ISAPI_Rewrite module (which I couldn’t get to work).

Another less elegant solution was to create a replacement 404 error page that would perform the redirection. This worked, but when the redirection occurred, any POSTed values were lost, so no forms could be used.

I thought all was lost until yesterday, I stumbled across an article on Microsoft’s IIS site.

This walkthrough will guide you through how to enable “Pretty Permalinks” for blog posts in the WordPress blog engine installed on IIS 7.0. Typically, without URL rewriting functionality on a Web server, WordPress users have to use “Almost Pretty” URLs (for example, http://example.com/index.php/yyyy/mm/dd/post-name/). This was the primary option for users who chose to host WordPress on IIS. Now, with the URL rewrite module available, you can have “Pretty Permalinks” (for example, http://example.com/year/month/day/post-name/) for WordPress blogs hosted on IIS 7.0.

This solved all my problems for a major project I’m involved in. It involves the URL Rewrite Technical Preview that can be found here.

[Via: IIS.net]

Leave a Reply

(required)

(required)


This blog is protected by Spam Karma 2: 6357 spams eaten and counting...

ne0ge0dotcom's Gamercard

Copyright © ne0ge0.com