DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 4th, 2004, 12:12 AM
ixue ixue is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 ixue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 24 sec
Reputation Power: 0
Question subdomain help

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

Reply With Quote
  #2  
Old May 4th, 2004, 06:34 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
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

Reply With Quote
  #3  
Old May 4th, 2004, 08:17 PM
ixue ixue is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 ixue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 24 sec
Reputation Power: 0
silentrage, thanks for quick reply. is there any other way than use frame?

Reply With Quote
  #4  
Old May 4th, 2004, 08:59 PM
alangrah alangrah is offline
Nettica DNS Services
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 65 alangrah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
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

Reply With Quote
  #5  
Old May 5th, 2004, 05:29 AM
ixue ixue is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 ixue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 24 sec
Reputation Power: 0
i use apache and cpanel. i am hosting on vps account and have root access.
Pls help
thanks

Reply With Quote
  #6  
Old May 5th, 2004, 05:43 AM
alangrah alangrah is offline
Nettica DNS Services
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 65 alangrah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Hi ixue,

Then you want to setup a virtual host. See this link:

http://httpd.apache.org/docs/mod/core.html#virtualhost

Regards,
Alan

Reply With Quote
  #7  
Old May 5th, 2004, 12:00 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > subdomain help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT