I have got a bit of a strange issue with our website.
We use helicon isapi rewrite on IIS 6.0, the actual rewriting of web addresses works fine. but... When I try to log in via a asp.net LoginStatus control it redirects to the login.aspx page with a 'returnURL' querystring parameter:
/account/login.aspx?ReturnUrl=%2fwindfarms%2fbarrow-united-kingdom-uk01.html
however for some strange reason it's adding the original none-rewritten querystring parameter to it's returnURL parameter like so:
/account/login.aspx?ReturnUrl=%2fwindfarms%2fbarrow-united-kingdom-uk01.html %3fwindfarmID%3duk01
To clarify, in '.htaccess' file, we have:
RewriteRule [\w\W\s\S-]*-(\w\w\d[\d\w]+)\.html windfarms.aspx?windfarmID=$1 [QSA]
our rewritten web address, would then look like:
barrow-united-kingdom-uk01.html
However when clicking on the asp.net LoginStatus control, it looks like:
/account/login.aspx?ReturnUrl=%2fwindfarms%2fbarrow-united-kingdom-uk01.html%3fwindfarmID%3duk01
Which after logging in successfully ends up looking like this:
/barrow-united-kingdom-uk01.html?windfarmID=uk01
Why is this happening and how can could I prevent this?
thanks all
Update
I have found out that the actual form action method has already changed before hitting the asp.net LoginStatus control, so the html looks like this before pressing the 'Login' button:
<form name="aspnetForm" method="post" action="barrow-united-kingdom-uk01.html?windfarmID=uk01" id="aspnetForm">