Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

URL Rewriting Conflicts With Return URL

$
0
0

Hi,

I have an C# Web application which I use ScottGu's method (http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx) for url rewrting. 

The issue I am facing is that I have a signin box in the master page and when my users are login to their accounts, I need to redirect them to login page. But instead, the rewrite url just refresh the page because of its rule.

the following url should go to the login page but it just reload the page:

http://localhost:42243/signin.aspx?ReturnURL=/services

and the rewrite rule is:

<rewrite url="services(\/)?([0-9]+)?(\/([0-9]+))?((\/([^?]*)(\?(.+))))?" to="~/srv_s.aspx?city=$2&amp;cat=$4&amp;$9"/>

Could you please help me?


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>