How do I keep subdomain.domain.com links from mapping to subdomain.domain.com/subdomain?
Posted
by Alan Jackson
on Stack Overflow
See other posts from Stack Overflow
or by Alan Jackson
Published on 2009-07-17T03:41:09Z
Indexed on
2010/03/26
9:13 UTC
Read the original article
Hit count: 196
asp.net-mvc
I have a virtual directory created and a sub domain that points to that virtual directory. My links always route to subdomain.domain.com/subdomain/controller/action when they can leave off the subdomain link. Is there an easy way to stop that?
Also, it's the same problem when I mapped anotherdomain.com to my virtual directory. It ends up linking to anotherdomain.com/virtualdir/controller/action.
It just looks unprofessional to me to have all my links be myapp.com/myapp/action/controller.
© Stack Overflow or respective owner