All subdirectories handled by one aspx page.

  • Thread starter Thread starter codeboy
  • Start date Start date
C

codeboy

I’d like to have my users point their browsers to subdirectories that do not
exist and have them all handled by one aspx page. For example if a user
trays to go to www.mysite.com/fakedir1, www.mysite.com/fakedir2, or
www.mysite.com/fakedir3 they will all be handled by
www.mysite.com/mypage.aspx. I don’t know what fake directories will be
needed so I’d like it to happen for all sub directories. I’d also like the
user to think they are actually in the dir. So the browser will need to
continue to reflect the dir they actually requested.
 
I’d like to have my users point their browsers to subdirectories that do not
exist and have them all handled by one aspx page.  For example if a user
trays to go towww.mysite.com/fakedir1,www.mysite.com/fakedir2, orwww.mysite.com/fakedir3they will all be handled bywww.mysite.com/mypage.aspx.  I don’t know what fake directories will be
needed so I’d like it to happen for all sub directories.  I’d also like the
user to think they are actually in the dir.  So the browser will need to
continue to reflect the dir they actually requested.  

This technique called URL Rewriting, see more
http://www.google.com/search?q=url+rewrite+asp.net
 
Back
Top