views:

787

answers:

1

I have a hosting account with GoDaddy and I enabled wildcard subdomains by adding an A Record pointing to the IP Address. However when I try opening abc.mydomain.com, I get a 404 error. I searched the web and am doubting whether I need a .htaccess file. That file does not exist in my root folder. Can someone please guide me how to configure this and a sample .htaccess file if required.

Many Thanks, Arun

A: 

To handle requests to dynamic subdomains you need to tell your webserver to do so. For example in Apache httpd you need the following directive in httpd.conf

ServerAlias *.yourdomain.com

The 404 may be coming from your own server not from godaddy.

Raul