Remove index.php from URL for WordPress

Many WordPress uses prefer to host their web sites on a Linux server so that they can get rid of the index.php that get’s in to the URL by using mod_rewrite module on Linux. This is not supported on Windows Server’s IIS.

The main idea is to make the URL more simple and SEO friendly. Normally, when you setup PermaLinks in IIS, we get something like this:

http://www.yourwordpresssite.com/index.php/2009/08/02/your-blog-post/

This means that each link to the post carries index.php in the URL which is not good. Outlined below are steps that can help to achieve the same results for a WordPress site on a Windows Server running IIS.

STEP: 1

Get the URL rewriting component on the Windows Server hosting your WordPress site. If you are not in control of the server or are not the server administrator, you can request the setup of the component from them. Click here to download the component from the vendor’s site. The component is absolutely free and distributed under GNU General Public License.

STEP: 2

Once the component is downloaded, copy the wp-url-rewriting.dll file to the Windows Server’s SYSTEM32 directory. Register the component so that it is available to IIS by using the REGSVR32 WP-URL-REWRITING.DLL command from the command prompt.

Note: You may get an error that the DLL entry point was not found, but let that not bother you.

STEP: 3

Once the DLL is registered, login to your WordPress admin area and navigate to PermaLinks and change the common setting to use Custom Structure. Add /%category%/%postname%/ as the choice and Save Changes.

That’s it! We are done. WordPress should now show the URL’s without the index.php in it.

I invite everyone to share their experience or any other methods that they might have used.

10 comments
  1. I blog frequently and I seriously appreciate your content. Your article has truly peaked my interest. I will bookmark your site and keep checking for new information about once per week. I opted in for your Feed as well.

  2. Wonderful article! We are linking to this particularly great post on our website. Keep up the great writing.

  3. After looking into a number of the articles on your web page, I honestly appreciate your technique of blogging. I book marked it to my bookmark site list and will be checking back in the near future. Take a look at my website as well and tell me how you feel.

  4. I will right away take hold of your rss as I can’t in finding your email subscription hyperlink or e-newsletter service. Do you’ve any?

    Please allow me recognize in order that I may just
    subscribe. Thanks.

  5. What’s up, I check your new stuff daily. Your writing style is witty, keep up the good work!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like