|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i have set my subdomain subdomain.mydomain.com and it pointing to mydomain.com/subdomain and it works.
Now my problem is when someone goes to the subdomain.mydomain.com, browser url is displaying URL. i want URL being displayed pls help, thanks in advance |
|
#2
|
||||
|
||||
|
Use frames. The server that does the redirecting will have a frames page instead with one frame. The frame source will be the URL you're redirecting to.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links: Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts |
|
#3
|
|||
|
|||
|
silentrage, thanks for quick reply. is there any other way than use frame?
![]() |
|
#4
|
|||
|
|||
|
What kind of web server are you using?
If you are using Windows XP, the only solution is above. If you are using a Windows Server, create a new website called subdomain.mydomain.com and point it directly to the filesystem location for http://mydomain.com/subdomain, don't redirect. Also add a host header called "subdomain.mydomain.com" so that the server will direct the request to the correct location using port 80. If you are using Apache, read up on Virtual Hosts. Regards, Alan ___________ DNS Services: Nettica.com |
|
#5
|
|||
|
|||
|
i use apache and cpanel. i am hosting on vps account and have root access.
Pls help thanks |
|
#6
|
|||
|
|||
|
Hi ixue,
Then you want to setup a virtual host. See this link: http://httpd.apache.org/docs/mod/core.html#virtualhost Regards, Alan |
|
#7
|
||||
|
||||
|
oooooh, yeah, I was assuming the two sites were on separate servers. If they're on the same server then setting up a virtual host document root to the subdirectory would work fine.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > subdomain help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|