Jump to content

send ip address AND hostname in header?


winger

Recommended Posts

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.