«

»

Mar 27 2013

Abhishek Jaiswal

Print this Post

Getting WordPress Pretty Permalinks working on IIS (Windows Hosting)

WordPress Pretty Permalinks working on IIS

“Pretty” permalinks usually require mod_rewrite, and IIS (common on Windows servers) does not support mod_rewrite.

I have used below steps to make it work on my site. hope this will also work for you.
Special Thanks to below blogs which help a lot to make it work on my site.

Use the following instructions to create pretty permalinks for your blog posts.

To enable pretty permalinks in Word Press:

  1. Log on to WordPress with Administrator user rights.
  2. In WordPress, go to Setting and click the Permalinks.
    This will take you to the page where you can customize how WordPress generates permalinks for blog posts.
    Make sure to open it in one more tab opened( we will use this extra tab to change the setting if this didn’t workout)
  3. On the Permalinks page, select Custom, specify below and enter “/index.php/%year%/%monthnum%/%day%/%postname%/” in the Custom structure text box. (In my case i simply selected the second option)
  4. Click Save Button

WordPress PermaLink


Creating a Rewrite Rule
Open the Web.config file that is located in the same directory where the WordPress files are installed, and paste the following XML section into the system.webServer element(if its not there than create one):

<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name=”Main Rule” stopProcessing=”true”>
<match url=”.*” />
<conditions logicalGrouping=”MatchAll”>
<add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” />
<add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” />
</conditions>
<action type=”Rewrite” url=”index.php/{R:0}” />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Now test your site i.e www.zappmania.in (replace zappmania with your site address)
if it gives you an error than try www.zappmania.in/index.php
if it shows you site correctly than follow below steps to make it redirect on this every time any user type your site address

  1. Go to setting and click on General
  2. In General add /index.php in Site Address (URL) box ie. www.yoursite.com/index.php
  3. Now Click on Save Button.

WordPress General Setting Page

:-) !!!NOW ENJOY – Happy Blogging!!!  :-) 

Abhishek Jaiswal

About Abhishek Jaiswal (Zappmania)

Abhishek Jaiswal has Contibuted 298 articles in this blog.

Hobby: reading/writing Knowledge based articles Technology/Skills : ASP.NET, SharePoint, C#, OOPs etc

Permanent link to this article: http://www.zappmania.in/2013/03/27/getting-wordpress-pretty-permalinks-working-on-iis-windows-hosting.html

6 comments

Skip to comment form

  1. EmmettNo Gravatar

    First of all I would like to say wonderful blog! I had a quick
    question in which I’d like to ask if you don’t mind. I was interested to find out how you center
    yourself and clear your thoughts before writing. I have had a hard time clearing my mind in getting my thoughts out.
    I truly do take pleasure in writing but it just seems like the first 10 to 15 minutes are usually
    wasted just trying to figure out how to begin.
    Any ideas or hints? Cheers!

  2. lista de emailNo Gravatar

    thanks for this article, it really enlightened me on my strategic approach to websites. thanks again.

  3. lista de emailNo Gravatar

    really impressed! everything is very open and very clear explanation of issues. it contains truly information. your website is very useful. thanks for sharing.

  4. lista de emailNo Gravatar

    i really appreciate your working style writing style of the article is really exceptional.

  5. Simple backlink generatorNo Gravatar

    Putting in No Hands WEB OPTIMIZATION and getting your internet-site entered inside ready for promo is literally some sort of 2 minute job. Within a few minutes from paying for you can have your 24 hours a day backlinker on your side.

  6. lista de emailNo Gravatar

    i really like your style of blogging. thank you for sharing with us.

Leave a Reply

Powered By Indic IME