Click here to Skip to main content
15,038,848 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using url rewriting and when I am fetching my url by using
HttpContext.Current.Request.Url.AbsoluteUri;

This is giving physical url, suppose
my physical url is http://www.vihaanapparels.com/Saree.aspx
and rewrite url is http://www.vihaanapparels.com/Women/Sarees

but during url fetching
it is giving http://www.vihaanapparels.com/Saree.aspx
while I want to fetch http://www.vihaanapparels.com/Women/Sarees
Posted
Updated 5-Sep-11 1:50am
v2

There's not enough information in question. Check the link, and try to figure out what's wrong with your approach.
http://msdn.microsoft.com/en-us/library/ms972974.aspx[^]
   
just use this :

C#
HttpContext.Current.Request.RawUrl


Edit: Code formatted
   
v2
Comments
[no name] 5-Sep-11 8:33am
   
I already used it but no positive result........
You can create your own url rewriter using HttpModule.

Please look the the below url how to impelement.. hope this helps..

http://www.techiescraft.com/search-engine-optimization-in-asp.net-–-how-to-implement_Article9.aspx[^]
   

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