File: D:/web/conferencesearch/web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Security: Block wp-includes" stopProcessing="true">
<match url="^wp-includes/.*\.php$" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Security: Block plugins" stopProcessing="true">
<match url="^wp-content/plugins/.*\.php$" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Enforce WWW and HTTPS" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^conferencesearch\.co\.uk$" />
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://www.conferencesearch.co.uk/{R:1}" redirectType="Permanent" />
</rule>
<rule name="WordPress: Skip Index" stopProcessing="true">
<match url="^index\.php$" />
<action type="None" />
</rule>
<rule name="WordPress: Permalinks" 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>
<httpErrors errorMode="DetailedLocalOnly" />
<defaultDocument>
<files>
<remove value="index.php" />
<add value="index.php" />
</files>
</defaultDocument>
<handlers>
<remove name="PHP_via_FastCGI" />
<add name="PHP_via_FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="D:\php83\php-cgi.exe" resourceType="File" requireAccess="Script" />
</handlers>
</system.webServer>
</configuration>