Jump to content

Archived

This topic is now archived and is closed to further replies.

winger

send ip address AND hostname in header?

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

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites

×

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.