Write some Software
$10-30 USD
Paid on delivery
We just changed a website from http to https (via cloudflare )and now having an issue with a rewrite rule.
It was initially there to rewrite
[url removed, login to view]
to
[url removed, login to view]
Unfortunately the rule does now this
[url removed, login to view]
to
[url removed, login to view]
to
[url removed, login to view]
Which is causing "Mixed content" trouble using AJAX.
So the goal would be that
[url removed, login to view]
or
[url removed, login to view]
is redirected directly to
[url removed, login to view]
The current rule is:
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.+)\.asp$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^www\.mydomain\.com$" />
</conditions>
<action type="Redirect" url="{R:1}" redirectType="Permanent" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^(.+)$" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}.asp" matchType="IsFile" ignoreCase="false" />
<add input="{HTTP_HOST}" pattern="^www\.mydomain\.com$" />
</conditions>
<action type="Rewrite" url="{R:1}.asp" />
</rule>
We can't give access to the server, so we would do the testing of your revised rule...
Thanks and best regards
Maureen
Project ID: #11887830
About the project
Awarded to:
Hello, i can fix your problem in a very short time. I have done something similar (except the httpS part here: [login to view URL]). Leandro