hi everyone does any one know how is megauploads subdomain ? its really cool ) ie. : anydomain.megaupload.com , forum.megaupload.com , digitalpoint.megaupload.com the site shows with any subdomain !!! how is that ? i heard that is about htaccess commands ! can anyone help me to do that ? [Srry For BAD English] Thanks
yes im using cpanel . but that wasn't my purpose please look at example about megaupload ! you can open it with any subdomains ! like : efaq.megaupload.com , ghjdklfhgdjk.megaupload.com !
That's some URL rewriting in their htaccess file. I don't know the comand, but you do that with a rewrite condition and a rewrite rule.
You can also do it with name based virtual hosts. In Apache, with based virtual hosts enabled, any host name which doesn't match a declared virtual host gets run to the default. So, just turn on name based virtual hosts, add one host for the main site, and point any domains names you want to "alias" to the same IP and you should be done.