Jump to content


Photo

send ip address AND hostname in header?


  • Please log in to reply
2 replies to this topic

#1 winger

winger
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 12 April 2006 - 03:39 PM

Hi all-

I have a site (I'll call it newsite.com) all ready to go on a new server, but - for reasons I won't go into - the DNS records for the domain still haven't been changed. So when people type in newsite.com they are still being taken to the old server, which is a major problem for me right now. I would just duplicate the site on the old server until the switch is made, but the old server doesn't have mySQL on it, which the new version of the site uses on virtually every page.

I do still have FTP access to the old server, so I've tried simply setting up a PHP redirect to the IP address of the new site. Unfortunately, the new site doesn't have a dedicated IP address on the new server, so it needs the host name as well as the IP address.

So in essence, my question is this: is it possible to send an IP address AND a hostname using a PHP header() redirect?

Thanks,
Colin

#2 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 12 April 2006 - 03:51 PM

The way i Would get around it for know, is to set up a dynamic no ip free service register a new dynamic name for the new sever and then redirect the old domain name to the new dynamic address.

GOOD LUCK.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#3 winger

winger
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 12 April 2006 - 05:56 PM

Thanks for the reply, redarrow. Unfortunately, I have no idea what any of that meant. Would you mind expanding a little bit for the benefit of a neophyte?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users