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]
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 😉
the rule is what makes wordpress work, and it was installed when you installed wordpress on iis.