Enabling Permalink from WordPress with IIS7.x

This article is applicable for WordPress user who used IIS7.x as their web services and not able to work correctly with the permalink.

1. Log into your WordPress. Select on Setting and click on Permalink Settings.

2. Select any of the Common Setting or Custom Structure.
3. Click Update Permalink Structure button.
4. Now, you will see your blog get 404 error when click on any post or pages. No worry, refer to the following step to get this fix.
5. Log into your DotNetPanel file manager or FTP, modify the web.config file from your root folder (probably wwwroot folder) and add the following code to the web.config file.

<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" />
<action type="Rewrite" url="index.php" />

6. Check again with any of your post or pages and all of them are working now.

References URL:

Published by

Mick Genie

Mick Genie is the founder of MickGenie.com and working at ExaBytes Network Sdn Bhd and WPWebHost web host company. He is expertise in Windows and Linux environment especially web hosting related information, tips and trick as well as the IT Information.