I have an Apache server, which main rootwebdir is '/usr/www/users/foo/' and
'foo.com' points there. However, I have some subdomains pointing within
This causes me a problem: if anyone types '
www.foo.com/subdomain1/aboutme.html', they find '
subdomain1.foo.com/aboutme.html' with another URL, and I'd like to avoid it.
I wondered if there was any way to avoid this (e.g., showing a 404 page),
by using a directive within the '.htaccess' file of
Any other solution is welcome. Thank you very much.