I
I
ildar r. khasanshin2017-06-01 15:25:53
robots.txt
ildar r. khasanshin, 2017-06-01 15:25:53

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 question

Ask a Question

731 491 924 answers to any question