1

I have the rules:

<rewrite url="~/construct2" to="~/construct2.aspx" processing="stop"/>
<rewrite url="~/construct" to="~/Handlers/PermRedirect.ashx?URL=construct2" processing="stop"/>

Along with many many more.

When I attempt to visit:

http://84.45.57.142/images/construct2-screenshot.jpg

It seems to activate these rules and redirect you to construct2.aspx. Does anyone know why? I thought ~/construct would only match root directory/construct not any directory/construct*

1 Answer 1

1

Try:

<rewrite url="~/construct2$" to="~/construct2.aspx" processing="stop"/>
Sign up to request clarification or add additional context in comments.

1 Comment

@Tom Gullen - this means end of line in Regex.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.