Domain Forwarding or SubDomains - Session Variables all mucked up!

Discussion in 'Hosting Services / Control Panel' started by DCottle, Jun 22, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. First, I checked every post in this Topic that had the word "Domain" in it, so if I missed it I apologize.

    I wanted to pointseveral different domains to the same account, and then programmatically split off to the correct subdirectory. So to try this out the cheapest way I knew how here is what I did:

    1 Original domain is www.GoldForGames.com
    2.Created a new domain at GoDaddy.com called www.game-coin.com
    3 Within GoDaddy, I chose to have the domain forwarded to www.GoldForGames.com.

    All is well with actually having www.game-coin.com go to www.GoldForGames.com. www.game-coin.com shows up in the address bar, and my default page for GoldForGames.com (original site) shows up.

    Now is where I have problems:

    1. Session variables are not working. All session variable are not getting pulled or set correctly.
    2. I cannot in my default page identify a difference in the SERVER_NAME or the HOST_NAME server variables no matter which URL was typed in the address bar. Both always say www.GoldForGames.com (original)

    Is there something I am missing here? I have a feeling it is because I tried to do the domain forwarding via GoDaddy instead of here, but that is just a guess. if that is the case, can somebody please tell me why and what I am missing?

    Thanks,

    D



    Post Edited (DCottle) : 6/22/2005 6:46:36 PM GMT
     
  2. The Godaddy forwarding feature is actually a frames page on Godaddy's server. Even though the URL stays www.game-coin.com, the frame within is actually pulling www.GoldForGames.com -- view the page source at www.game-coin.com.

    The best thing to do is order the Root Domain Pointer addon, so you can distinguish the server and host name variables.
     
  3. I think your right....i just checked out the source and it makes alot more sense now. As far as my site is concerned, it is always GoldForGames, just wrapping it in a frame from game-coin.com.

    thanks! I will try purchasing that now!

    David
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page