Answer the question
In order to leave comments, you need to log in
How to add robots.txt exception to web.config?
there is a working rule for redirecting to https:
< rule name=" Redirect to https " stopProcessing=" true " >
< match url=".*" / >
< conditions>
< add input="{HTTPS}" pattern="off" ignoreCase="true" / >
< / conditions >
< action type="Redirect" url=" https://{HTTP_HOST}{REQUEST_URI} " redirectType="Permanent" appendQueryString="false" / >
< / rule >
how to add exception for robots.txt?
those. to be similar to this rule in .htaccess:
RewriteCond %{HTTP:X-HTTPS} !1
RewriteCond %{REQUEST_URI} !
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question