Click here to Skip to main content
15,901,666 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Can anyone tell me the URL Rewrite rule To Redirect
URL:- www.xyz.com/abcd.aspx?var=ab12
To New URL:- www.xya.com/abcd/abcd.aspx?var=ab12

Thank you.
Posted

use this code:

response.redirect(request.rawurl);

Best of luck
 
Share this answer
 
 
Share this answer
 
Comments
AbidHussain128 29-Jan-14 4:49am    
Hi JoCodes,

Thanks for your reply..!
From this way I am not able to track Qurey string.
Is there any other solution?

Otherwise i have one solutions to redirect from code behind... (but this is not proper way)

thank you.
JoCodes 29-Jan-14 5:02am    
Welcome.query string also can be handled the same way.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900