URL Redirection/Re writting/Change browser bar value
-
hi all, i have made asp.net application in C#. suppose my site adress is "abc.com" I have pages related to admin and user but there are no folder, there are internal page links on my site, like login link, when login link is clicked within site user is redirected to "abc.com/login.aspx" and this appear as it is on Ie browser bar, what i want is it should "abc.com/admin/login.aspx" or "abc.com" (change browser bar adress and use httpcontext.rewritepath() method), There more similar situations like this but that is simplest, i know other solution of that instead of login.aspx, link href should be "/admin/login.aspx" but i dont want this solution and use httpcontext.Rewritepath() method. what i am intrested is href should be "abc.com/login.aspx" but afer clicking on link and on post back Browser bar should display "abc.com/admin/login.aspx" or only "abc.com", i want change values from browser bar. i hope you understand this problem i am doing this asp.net C#.
Regards. Tasleem Arif