How to rewrite a path using a custom HttpHandler
Posted
by Micah
on Stack Overflow
See other posts from Stack Overflow
or by Micah
Published on 2010-04-14T12:31:48Z
Indexed on
2010/04/14
12:33 UTC
Read the original article
Hit count: 227
I'm writing a multi-tenant app that will receive requests like http://www.tenant1.com/content/images/logo.gif
and http://www.anothertenant.com/content/images/logo.gif
. I want the requests to actually map to the folder location /content/tenant1/images/logo.gif
and /content/anothertenant/images/logo.gif
I'm using asp.net Mvc 2 so I'm sure there's probably a way to setup a route to handle this or a custom route handler? Any suggestions?
Thanks!
© Stack Overflow or respective owner