Forum Moderators: phranque
subdomain.example.com/ - pointing to the main domain content like http://www.example.com
subdomain.example.com/subdomain.html - pointing to the subdomain content page.
is there anyway to point the subdomain on the subdomain content only.
wud appreciate any help.
You can also use Apache mod_rewrite to check the %{HTTP_HOST} variable, and rewrite requests to different subdirectories based on the requested hostname. See the Apache mod_rewrite documentation, and especially the "Mass Virtual Hosting" section in the URL Rewriting Guide [httpd.apache.org].
We also have tons of previous threads here on rewriting domains or subdomains to subdirectories -- Try a search on WebmasterWorld.
Jim