Blog

How to create WordPress Pretty Permalinks on IIS / WHS

Soon after I installed WordPress on my Windows Home Server (WHS) which runs IIS I realized my permalink options were limited since IIS does not support mod_rewrite. I definitely wanted to produce Pretty Permalinks, therefore, I spent some time searching plausible solutions that would mimic mod_rewrite capabilities so I could accomplish this goal. What I found were several workaround tutorials that explained how to create 404 redirects while others provided instructions on how to use PHP and INI files in association with a ISAPI Rewrite Filter. Nonetheless, I was not interested in going through all the tedious steps in these workarounds so I continued doing my homework. Thanks to a project on Google Code I was able to find a solution that works perfectly and only takes minutes to implement.

Before I take you through the steps let me back up a minute for those of you who are not familiar with Pretty Permalinks. Permalinks are the permanent URLs to individual blog posts, as well as archives, categories, and other blog postings. According to WordPress, “Pretty Permalinks is the idea that URLs are frequently visible to the people who click them, and should therefore be crafted in such a way that they make sense, and not be filled with incomprehensible parameters.” For example, if you choose the permalink “Month and Name” option it would produce a URL that would look like this:

Read More

Adding space between reCAPTCHA and the comment Submit Button on WordPress

When I embedded reCAPTCHA into my WordPress blog the first thing I noticed was that reCAPTCHA was sitting directly on top of the “Submit Comment” button without allowing any breathing room between the two. The appearance was rather obtrusive so I decided to do a quick search for a solution using my buddy, “Google.” Normally I would muck around with the code myself and call it a day, but I figured there was someone who already found a fix and shared it with the rest of us. As it turns out, there are many forum discussions about this same exact issue and several on the WordPress forum, yet no solutions were ever posted.

So, after wasting a few minutes searching for a solution, I decided to look through the code so I could figure out how reCAPTCHA was embedded into the comment section of the blog and attempt to correct its placement. My first instinct was to add a simple “break (<br/>)” tag in the comments.php file, above the “Submit Comment” button code, so this way it would add some space. However, this edit was unsuccessful and I quickly realized the only way to make this work was by combing the reCAPTCHA PHP file and looking for the correct section in the code to add a “<br/>” tag. After I opened the reCAPTCHA PHP file it did not take more than a minute to figure out which section needed the “<br/>.”

Read More