This seems to be what I'm looking for too but I'm not sure where to use this
Where would you put a code that rewrites the path? In begin_request? Obviously the path has to be rewritten before the actual loading of a page begins, right
I would really appreciate a few lines of code just for example and where to put them for this to work
how to for example do what you wrote, when request URL is
http://www.mysite.com/GuadalaHarry to have the application load
http://www.mysite.com/userpage.aspx?user=GuadalaHarry instead
and is there any way for userpage.aspx to get the original request URL
----- Steve C. Orr [MVP, MCSD] wrote: ----
It is especially useful with HTTPHandlers
You could have fancy user-specific URLs such as this
http://www.mysite.com/GuadalaHarr
But this would really be redirected internally (using RewritePath) to a mor
normal path such as
http://www.mysite.com/userpage.aspx?user=GuadalaHarr
The user would get to use the nice URL and wouldn't ever have to know tha
you've really structured pages on your server differently than it appears
This also gives you the freedom to change your file/folder structure on you
server in the future without changing the URLs that your users are alread
familiar with
--
I hope this helps
Steve C. Orr, MCSD, MV
http://Steve.Orr.ne
"Guadala Harry" <gh****@aol.com> wrote in messag
news:uv**************@TK2MSFTNGP10.phx.gbl..
I'd really appreciate it if someone would give me a"plain English
explanation of HttpContext.RewritePath(). I read the MSDN documentation
bu still don't understand it According to MSDN ... assigns an internal rewrite path. RewritePath allows for the URL tha
i requested to differ from the internal path to the resource What does this mean? When would it be useful to have the paths differ
Thanks