Write some Software

In Progress Posted 7 years ago Paid on delivery
In Progress 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

IIS Regular Expressions

Project ID: #11887830

About the project

1 proposal Remote project Active 7 years ago

Awarded to:

leandrozhuzhi

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

$15 USD in 1 day
(0 Reviews)
0.0