Forum Moderators: phranque

Message Too Old, No Replies

Subdomain managed on htaccess

manage subdomain on htaccess for resolve problem with nameserver

         

webstyler

9:00 am on Mar 13, 2006 (gmt 0)

10+ Year Member



Hi

we have a domain that point to our server
in this domain we cannot set nameserver but only record A, NAME and MX
So, we have set in record A the server ip

The problem is for subdomain create in Cpanel that not is viewed.

We think to resolve this, if possible, we htaccess and redirect **.mydomain.it TO www.mydomain.it/**
This can resolve our problem or is the same manage as cpanel?

Thks to all :)

jdMorgan

9:14 pm on Mar 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to add a record to your DNS zone file to *define* the subdomains, such as

*.example.com IN A 192.168.0.1

If you don't do this, then requests for subdomains of you domain will never even reach your server.

After these requests are pointed to your server, then you can configure the filespace to host the subdomains using cPanel or by manually editing the httpd.conf file.

Jim

webstyler

7:17 am on Mar 14, 2006 (gmt 0)

10+ Year Member



:) thks Jim