looking for some solutions? You are welcome.

SOLVED: Rewrite rule not working for redirection from http to https

Abhiraj Shinde:

Tried below code but it's not working, entered rewrite tag in system.webServer tag in web.config file of c# , Shows error rewrite can not be child element of system.webServer tag

        <rule name="Rule1" enabled="true" stopProcessing="true">
          <match url="(.*)" />
            <add input="{HTTPS}" pattern="^OFF$" />
          <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />

Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots

No comments: