I have the following implemented for a login solution on our website before FriendlyURL/URL Master are setup:
No Login link on any webpage (removed from skins). Instead www.dmcinfo.com/login will take you to the login page.
This was done by adding a folder /Login that just does:
Response.Redirect("~/Default.aspx?tabid=38&ctl=Login");
Then also added rewriter rule to SiteUrls.config
<RewriterRule>
<LookFor>.*/Login/Default.aspx</LookFor>
<SendTo>~/Default.aspx?TabId=38&ctl=Login</SendTo>
</RewriterRule>
This is not working anymore. I thought I was close to having it work by adding:
IgnoreRegex: \login|(?linkclick.... etc....
doNotRedirectRegex: login|/LinkClick.... etc....
The first (IgnoreRegex) change is to allow the base solution to do it's redirect of www.dmcinfo.com\login to
/Default.aspx?tabid=38&ctl=Login
which seems to work according to Firefox's LiveHTTP headers add in.
The second (doNotRedirectRegex) change is to allow the java script to work without returnning a 404 or 301
These seem to do the trick, but then I redirected to an Object reference not set to an instance of an object error. I am able to login temporarily if I need to by swapping out the webconfig file (thank God for SVN).
What am I doing wrong? For your reference, my site is www.dmcinfo.com *AND* I have removed the above changes to Regex filters for now.