I have updated a redirection rule for my site,
<rule name="main mysitecom redirect" stopProcessing="true">
<match url="^$" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^(?:(www|local))?(.mysite\.com)$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/en" appendQueryString="false" />
This rule will redirect the page to default language "en" when user types the url on browser. Sitecore login -> Experience editor through this url is not working. When I try to open any item in experience editor while accessing through the given url in browser, it is redirecting to home page directly.
How can I fix this issue ?
<add input="{QUERY_STRING}" pattern="^$" />
to<conditions>
to make sure your rule is only executed when there is no query string