Forum Moderators: phranque

Message Too Old, No Replies

www.sub.example.com to sub.example.com

www.sub.example.com to sub.example.com

         

SriKolla

12:19 pm on Dec 27, 2008 (gmt 0)

10+ Year Member



Hi, I'm new here. I have a an issue to which i couldn't find an exact answer.
The prob is I have a sub domain in my site eg: [sub.example.com...]
But when a user tries to reach the site via [sub.example.com...] he gets an error Server Not found.
Can any one pls tell me how to redirect user from www.sub.example.com to sub.example.com OR any other way to solve this problem.

Thanx in advance... :)

[edited by: SriKolla at 12:20 pm (utc) on Dec. 27, 2008]

jdMorgan

2:12 pm on Dec 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You will need to modify your DNS Zone file to add an 'A record' or 'CName' to point sub-sub-domains to your server's IP address.

Only after the request can be resolved to your server will any server-side configuration or redirect code have any effect.

Jim

SriKolla

4:00 pm on Dec 27, 2008 (gmt 0)

10+ Year Member



Ermm but my prob is
[sub.example.com...] works but [sub.example.com...] is what gives error.

jdMorgan

4:05 pm on Dec 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, you may have a wildcard DNS A record for *.example.com, but do you have an A record for *.*.example.com?

"Cannot find server" indicates a DNS error, and you must fix that before the request will even reach your server. If the request cannot reach your server, then nothing you do on the server matters.

Jim

SriKolla

4:12 pm on Dec 27, 2008 (gmt 0)

10+ Year Member



Ahhh k.. I got it.. Thanx Jim I'll contact my web host regarding this.. Thought i could manage it by myself.. Thanx for the help.