Install on shared hosting pre-domain name propagation

Permalink
I'm having issues getting C5 configured on a shared hosting account. I'm migrating a site to C5, but can't switch the DNS to point to the new site C5 until it's ready.

In the meantime, the host sets up the site ashttp://server5.hosting.com/~myclient... (URL altered to protect the innocent) until I switch the DNS to point to the new site.

Here's the config.php that C5 installed:
define('BASE_URL', 'http://server5.hosting.com');
define('DIR_REL', '/~myclient');


This setup works fine for any auto-generated links within the site (like AutoNav), but if I hand-code a link, I have to include the "/~myclient/" in the link or it won't work. If I don't include that folder in my links, I'll get something like "http://server5.hosting.com/products/" for a URL like "http://server5.hosting.com/~myclient/products/"

The problem is, when I switch the DNS on the site, I'll have to go back through and re-enter any of the manual links to remove the "/~myclient/" preface.

I thought the following config might work:
define('BASE_URL', 'http://server5.hosting.com/~myclient');
define('DIR_REL', '');


...Since that's my hosting account's root folder, but it does not work.

I REALLY don't want to re-enter those URLs once the site is ready to switch.

Any ideas?

invision
 
Brainakazariua replied on at Permalink Reply
Brainakazariua
Why don't you make use of your Windows hosts file? (C:\WINDOWS\system32\drivers\etc\hosts) in that file you can point the new IP directly tohttp://server5.hosting.com and build it on the enviroment where the site needs to go live without other people seeing is.

For other systems hosts file you can check here:http://en.wikipedia.org/wiki/Hosts_%28file%29...