Forum Moderators: open
MYURI/?spam_page/ and MYURI/?spam_page.html
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.asp" />
<add value="default.asp" />
<add value="default.aspx" />
<add value="index.php" />
<add value="index.htm" />
<add value="index.html" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="410 Response" patternSyntax="Wildcard" stopProcessing="true">
<match url="*http://MYURI/?*" />
<action type="Redirect" url="https://MYURI/410.asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 1" stopProcessing="true">
<match url="^index\.htm$" />
<action type="Redirect" url="https://MYURI/index.asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 2" stopProcessing="true">
<match url="^ another-page \.htm$" />
<action type="Redirect" url="https://MYURI/another-page.asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 3" stopProcessing="true">
<match url="^v\.htm$" />
<action type="Redirect" url="https://MYURI/ another-page.asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 4" stopProcessing="true">
<match url="^ another-page \.htm$" />
<action type="Redirect" url="https://MYURI/ another-page .asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 5" stopProcessing="true">
<match url="^ another-page \.htm$" />
<action type="Redirect" url="https://MYURI/ another-page.asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 6" stopProcessing="true">
<match url="^godspell- another-page \.htm$" />
<action type="Redirect" url="https://MYURI/ another-page.asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 7" stopProcessing="true">
<match url="^ another-page \.htm$" />
<action type="Redirect" url="https://MYURI/ another-page.asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 8" stopProcessing="true">
<match url="^ another-page \.htm$" />
<action type="Redirect" url="https://MYURI/ another-page.asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 9" stopProcessing="true">
<match url="^ another-page \.htm$" />
<action type="Redirect" url="https://MYURI/ another-page.asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 10" stopProcessing="true">
<match url="^ another-page \.htm$" />
<action type="Redirect" url="https://MYURI/ another-page.asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 11" stopProcessing="true">
<match url="^ another-page \.htm$" />
<action type="Redirect" url="https://MYURI/ another-page.asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 12" stopProcessing="true">
<match url="^ another-page \.htm$" />
<action type="Redirect" url="https://MYURI/ another-page .asp" redirectType="Permanent" />
</rule>
<rule name="301 Redirect 13" stopProcessing="true">
<match url="^ another-page \.htm$" />
<action type="Redirect" url="https://MYURI/ another-page.asp" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By-Plesk" />
</customHeaders>
</httpProtocol>
<httpErrors>
<remove statusCode="502" subStatusCode="-1" />
<remove statusCode="501" subStatusCode="-1" />
<remove statusCode="500" subStatusCode="-1" />
<remove statusCode="412" subStatusCode="-1" />
<remove statusCode="406" subStatusCode="-1" />
<remove statusCode="405" subStatusCode="-1" />
<remove statusCode="404" subStatusCode="-1" />
<remove statusCode="403" subStatusCode="-1" />
<remove statusCode="401" subStatusCode="-1" />
<remove statusCode="400" />
<error statusCode="400" path="D:\www\MYURI\error_docs\bad_request.html" />
<remove statusCode="407" />
<error statusCode="407" path="D:\www\MYURI\error_docs\proxy_authentication_required.html" />
<remove statusCode="414" />
<error statusCode="414" path="D:\www\MYURI\error_docs\request-uri_too_long.html" />
<remove statusCode="415" />
<error statusCode="415" path="D:\www\MYURI\error_docs\unsupported_media_type.html" />
<remove statusCode="503" />
<error statusCode="503" path="D:\www\MYURI\error_docs\maintenance.html" />
<error statusCode="401" prefixLanguageFilePath="" path="D:\www\MYURI\error_docs\unauthorized.html" />
<error statusCode="403" prefixLanguageFilePath="" path="D:\www\MYURI\error_docs\forbidden.html" />
<error statusCode="404" prefixLanguageFilePath="" path="D:\www\MYURI\error_docs\not_found.html" />
<error statusCode="405" prefixLanguageFilePath="" path="D:\www\MYURI\error_docs\method_not_allowed.html" />
<error statusCode="406" prefixLanguageFilePath="" path="D:\www\MYURI\error_docs\not_acceptable.html" />
<error statusCode="412" prefixLanguageFilePath="" path="D:\www\MYURI\error_docs\precondition_failed.html" />
<error statusCode="500" prefixLanguageFilePath="" path="D:\www\MYURI\error_docs\internal_server_error.html" />
<error statusCode="501" prefixLanguageFilePath="" path="D:\www\MYURI\error_docs\not_implemented.html" />
<error statusCode="502" prefixLanguageFilePath="" path="D:\www\MYURI\error_docs\bad_gateway.html" />
</httpErrors>
</system.webServer>
</configuration>
Are you just worried because these pages show up in the Search Console as 404 errors?And yes. I want them to show up/respond as 410.
any URI with a question mark (?) as that seems to be the only constant factorTwo general observations--obviously can’t be specific, as I don’t speak IIS.