Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Hosting Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Hosting Forum Discuss web hosting related stuff.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 06-23-2004, 11:16 AM   #1 (permalink)
Inactive
 
Join Date: 05-26-04
Posts: 13
iTrader: 0 / 0%
Latest Blog:
None

Butler Did It is liked by many
Can you link to a subdirectory through DNS?

I have a client that has already registered their domain with Network Solutions. Rather than paying Network Solutions $12/year to forward their old domain to a new site, is their a way to create a DNS that will link directly to a subdirectory?

Say the name of the company is TheLoveBoatRules.com and the IP address is 101.101.101.01, and I then add a /Julie directory....

Is there there a way to create a DNS that would link directly to http://www.TheLoveBoatRules.com/Julie/ ?

I hope that makes sense... Thanks in advance for any and all help!

- Butler
Butler Did It is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-23-2004, 11:23 AM   #2 (permalink)
SVB
Inactive
 
SVB's Avatar
 
Join Date: 10-13-03
Posts: 7,481
iTrader: 0 / 0%
Latest Blog:
None

SVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest order
Send a message via Yahoo to SVB
You use the Loveboatrules DNS, then use the Addon domain option in CPanel. Add thyour clients domain in there and choose it to go to the Julie folder.
SVB is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-23-2004, 01:59 PM   #3 (permalink)
Inactive
 
Join Date: 05-26-04
Posts: 13
iTrader: 0 / 0%
Latest Blog:
None

Butler Did It is liked by many
Still trying!

Thanks for your reply, unrealfragmaster. However, I am still confused!!! haa haaaaaaaaaaaaaaaa

TheLoveBoatRules.com is the hosted domain. The old company was FantasyIslandRules.com. Both domains are set to the same DNS, 101.101.101.01 at Network Solutions.

I would like FantasyIslandRules.com to go to TheLoveBoatRules.com/Julie/. Rather than paying Network Solutions $12/year to forward their old domain to a new site, is there a way to create a DNS that will link directly to a subdirectory?

In the Network Solutions control panel, I can change the DNS for FantasyIslandRules.com, but I don't see where I can use the Addon domain option. I tried entering 101.101.101.01/Julie/ without luck! haa haaaaaaaaaaa


Thanks!!!
Butler Did It is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-23-2004, 02:22 PM   #4 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,946
iTrader: 0 / 0%
Latest Blog:
None

imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
If you are using asp you could do something like this on the top of your default home page. I had to use this technique for a client that could not control their DNS because their hosting provider would not allow it.

<%
Response.Buffer = True
If LCase(Request.ServerVariables("HTTP_HOST")) = "FantasyIslandRules.com" Then
Response.Clear
Response.Redirect "/julie/"
End If
%>

As long as the DNS is pointing to TheLoveBoatRules.com the page will resolve like FantasyIslandRules.com/julie/.

If you are not using ASP same technique could be accomplished using a different programming language.

imaginemn
__________________
Need a project done? - Set Your Own Price!
Imagine Creative Services
- Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-23-2004, 05:12 PM   #5 (permalink)
Inactive
 
Join Date: 05-26-04
Posts: 13
iTrader: 0 / 0%
Latest Blog:
None

Butler Did It is liked by many
Great suggestion!

That is a great suggestion, imaginemn. I think that may be my easiest solution. However, the page is in PHP due to some includes.

The only thing I was able to research for a redirect is this, however I think this script will redirect visitors to both sites...

[code:1:0302d1e840]<?
Header("Location: http://www.TheLoveBoatRules.com/Julie/");
?> [/code:1:0302d1e840]

Does anyone know how I would convert the following ASP to PHP?

[code:1:0302d1e840]<%
Response.Buffer = True
If LCase(Request.ServerVariables("HTTP_HOST")) = "FantasyIslandRules.com" Then
Response.Clear
Response.Redirect "/julie/"
End If
%> [/code:1:0302d1e840]

Thanks a million, everyone. I appreciate it!!!
Butler Did It is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-23-2004, 05:21 PM   #6 (permalink)
Potato Monster
 
Immo's Avatar
 
Join Date: 03-26-04
Location: Chester, England
Posts: 3,874
iTrader: 0 / 0%
Immo is a web professional of the highest orderImmo is a web professional of the highest orderImmo is a web professional of the highest orderImmo is a web professional of the highest orderImmo is a web professional of the highest orderImmo is a web professional of the highest orderImmo is a web professional of the highest orderImmo is a web professional of the highest orderImmo is a web professional of the highest orderImmo is a web professional of the highest orderImmo is a web professional of the highest order
Send a message via ICQ to Immo Send a message via AIM to Immo Send a message via MSN to Immo Send a message via Yahoo to Immo Send a message via Skype™ to Immo
You should use a .htaccess file really instead of redirects of any sort, they do more harm than good.
__________________
I have become death, destroyer of worlds.
Immo is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-23-2004, 05:44 PM   #7 (permalink)
Inactive
 
Join Date: 05-26-04
Posts: 13
iTrader: 0 / 0%
Latest Blog:
None

Butler Did It is liked by many
Wow...

Another solid idea... thanks for the heads up.

See what I get for learning PhotoShop first?!?!

Time to learn some basic .htaccess! haa haaaaaaaaaaaaaaaa

Thanks everyone for your help!
Butler Did It is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-23-2004, 05:51 PM   #8 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,946
iTrader: 0 / 0%
Latest Blog:
None

imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
PHP Version

[code:1:84f42bae6f]<?php
if($HTTP_HOST == "www.FantasyIslandRules.com"){
header "Location:/julie/index.php");
}
?>[/code:1:84f42bae6f]
__________________
Need a project done? - Set Your Own Price!
Imagine Creative Services
- Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-23-2004, 07:32 PM   #9 (permalink)
Individualist
 
John Scott's Avatar
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,521
iTrader: 3 / 100%
Latest Blog:
Google????

John Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster material
Send a message via AIM to John Scott Send a message via Yahoo to John Scott
http://www.v7inc.com/tutorial/cpanel_xv2_addon.htm
John Scott is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Hosting Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit your link to our FREE Web Directory/Link Exchange Partners sheena Web Directory Issues 1 02-19-2007 09:14 AM
subdirectory question se4b4ss Coding Forum 5 03-08-2005 10:17 PM
Change To Link Bomb Sign Of New Link Analysis Shift GoldDust SEO Forum 3 07-28-2004 10:23 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 10:31 AM.
© Copyright 2008 V7 Inc