d-null |
07-11-2008 01:13 PM |
.htaccess redirects?
is it possible to use htaccess to redirect all subdomain requests to the main domain?
example: anyrandomlettersandnumbers.mydomain.com
redirect to: mydomain.com/anyrandomlettersandnumbers/
so in other words, there is no subdomain set up in dns or anything, just the main domain, but I want it so that if someone enters any possible subdomain that it will accept the request and redirect it to a folder in the maindomain of the same name
is that possible?
|