What created this URL Rewrite rule in my WordPress installation on Windows Server 2019 and what is this rule for?

[ad_1]

I am WordPress newbie.

I installed WordPress on my own Windows Server 2019 virtual machine. It is hosted on IIS + PHP, no other webservers (like Apache).

I have URL Rewrite ([https://www.iis.net/downloads/microsoft/url-rewrite]) installed on this IIS instance as well.

Everything works however in order to get it to work I had to run the site under an account with Admin privileges. This clearly not a good idea and I would like to reinstall it to run under account with limited privileges (**EDIT:** found solution for limited privileges here: [https://wordpress.org/support/topic/file-permissions-for-wordpress-on-iis-80/]) ).

I looked in the WP site folder and there is a **web.config** file there with the following rewrite rule:

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name=”WordPress: ” patternSyntax=”Wildcard”>
<match url=”*”/>
<conditions>
<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>

I have no recollection creating this rewrite rule manually.

Does anyone have any idea what could have created it and what is this rule for?

[ad_2]
2 Comments
  1. The sooner you can get off IIS the better. I came from a Windows background and when I moved to WP I wanted to use IIS because I knew it, but you’ll have constant issues with it with WP. LAMP (or LEMP) is the only sane option 😉

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer