Does anyone know if I can create a redirect from subdomain.mydomain.com to mydomain.com/subdomain? Is it possible to use .htaccess file for this?
Thanks!
Does anyone know if I can create a redirect from subdomain.mydomain.com to mydomain.com/subdomain? Is it possible to use .htaccess file for this?
Thanks!
Why would you want to do that? A call to subdomain.mydomain.com is already pulling its files from mydomain.com/subdomain. A redirect of some sort would, I suppose, change what appears in the browser's address bar, but that's about it.
If I type something.mydomain.com I get address not found.
I would like to be able to have that (or anything else instead of "something") automatically redirect to mydomain.com/something
You need to add it as a subdomain from the Control Panel. That will automatically set things up the right way.
I know I can add each one from the domain manager, but I'd like to be able to set it up automatically, so a user that comes to my site, can get their own name.mydomain.com on my site, without me having to create it for them manually...
But an .htaccess redirect would have to be set up by you, anyway, so I don't think there could possibly be an "all automated" way of doing it. You certainly don't want your users to be able to edit the .htaccess in your public_html directory! Maybe someone else has found a way to get from here to there....