Forum Moderators: phranque
i have one client with 2 . com names but one hosting space . I have created a subdomain and uploaded his second site to it. and i have changed his dns to point to it ( all well and good ) the problem i have is that if you type [hissite.com...] it does resolve to the right page . but and here it comes the url displays as [him.hissite.com...] (as it would )
is there any way of keeping the origional url in the addy bar?.....i have heard of using frames to retain the url but this site it wont work with because the .com is poiting to a subdirectory .........any ideas ladies and gents?
going bald quickly
Andy
Don't Panic! There is a probem either in the way you set up the DNS, or in the server configuration. The domain name should point to the IP address of the server. The server (in httpd.conf or .htaccess) should then detect the requested Hostname, and transparently redirect to the subdirectory containing pages for that domain. Nowhere along the line should a subdomain be created or used.
I should note that the above may not work well - or at all - on a name-based virtual hosting setup (with IP address shared among all hosted domains) unless you have server admin privileges.
Jim