I am trying to remove the web folder in the URL of my Yii2 web application hosted on windows server.
I want my application to be accessed at http://example.com
instead of http://example.com/web
I have managed to enable pretty URLs using the code below.
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
how do I achieve this?