Portal Home > Knowledgebase > Articles Database > Wild card subdomain


Wild card subdomain




Posted by map007, 07-19-2008, 06:04 AM
Hi, I want to wild card subdomain redirection I want to like this when anyone type *.mydomain.com to will redirect to http://www.mydomain.com how can i do this. I have create A record for *.mydomain.com and also add in serveralias www.mydoamin.com mydomain.com *.mydomain.com Help me ? Thanks.

Posted by RoseHosting, 07-19-2008, 06:29 AM
Did you restart your named and apache services after you made some changes inside their configuration files?

Posted by whmcsguru, 07-19-2008, 03:59 PM
If you have some sort of a control panel, add that just like you would any other subdomain. I know this works with CPanel, but it should work with any others. As far as the problem: It looks like you've setup the dns entry properly, and setup apache properly. Make SURE you've restarted both named (or whatever you're using to handle dns requests) AND apache (or whatever your using to handle http requests) Also , note that just changing the subdomain entry in the named record isn't enough. You MUST change the serial as well. If you've done all that and still can't see what you're looking for, then clear your own dns cache. If that still doesn't work, it's time to find a professional to do this for you.

Posted by map007, 07-21-2008, 07:01 AM
Hi, I configured properly and also restarted both the services but still not working , any other things to do ? Pls guide me. thanks.

Posted by whmcsguru, 07-21-2008, 09:04 AM
Obviously you didn't, otherwise it'd be working for you.

Posted by CodyRo, 07-21-2008, 09:32 AM
Paste us the appropriate sections of your Apache / BIND configs .

Posted by map007, 07-24-2008, 02:04 AM
How can i do from .htaccess file? DNS :--- *.mydomain.com A x.x.x.x Apache:---- server alias www.mydoamin.com *.mydoamin.com mydomain.com But still not working.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read