joined:Mar 20, 2008
Hi, so I have setup a site which uses virtual hosts. The site starts with login.example.com, and redirects if successful into anotherplace.example.com.
Trouble is, is that I want the browser to detect if I enter http://www.example.com/login , where the vhost root directory is, and either generate a 404, or have it redirect to login.example.com, but am not sure how.
So I am wondering what the best way to do this is, considering my include files point to the virtual hosts' root i.e. http://example.com/login/includes, and not the actual root. Is .htaccess the recommended option, or something else?