WordPress Permalink code for Windows server

Postfix Spam Tracking
May 17, 2019
How to upgrade ubuntu 16.04 to ubuntu 18.04 ?
May 19, 2019

WordPress Permalink code for Windows server

In IIS 7, 8, 8.5, 10 , you can add below code in the Option “URL Rewrite” when you click on the domain or in web.config file, as the .htaccess will not work as it works for Linux servers:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="wordpress" 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" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Comments are closed.

%d bloggers like this: