view files on server before redirecting dns

view files on server before redirecting dns

Posted by: ed247
Posted on: 2007-09-06 09:20:00

I need to view the site on chronos.dreamhost.com/sunnybrookhomesinc.com before pointing the dns from the old server to this new dreamhost one, but when I go to http://chronos.dreamhost.com/sunnybrookhomesinc.com/index.html i get nothing

Re: view files on server before redirecting dns

Posted by: rlparker
Posted on: 2007-09-06 12:19:00

Yea, that method won't work on DreamHost. There is a process by which you can view your site before going "live", and it is described in the DH Wiki article on Viewing your site before DNS cahange smile.

--rlparker

Re: view files on server before redirecting dns

Posted by: patricktan
Posted on: 2007-09-06 17:35:00

From what I understand, we can view the "live" site under a free dreamhosters's subdomain.

So we can visit XXXX.dreamhosters.com, but not sunnybrookhomesinc.com

Am I right?

Re: view files on server before redirecting dns

Posted by: rlparker
Posted on: 2007-09-06 18:17:00

You are correct. As the wiki article says, you can actually build the site in the "sunnybrookhomesinc.com" directory, and view it via the "mirroring" setup using xxx.dreamhosters.com. wink

--rlparker

Re: view files on server before redirecting dns

Posted by: patricktan
Posted on: 2007-09-06 18:20:00

Thanks rlparker. Now I fully understand how to view site before DNS change.

tongue

Re: view files on server before redirecting dns

Posted by: rlparker
Posted on: 2007-09-06 18:31:00

You are welcome! smile Actually, I rarely use the "mirroring" - I'll set up a dreamhosters.com subdomain, develop there and preview, then rename directories as needed when I am ready to "launch". It just seems easier to me.

You *do* have to make sure and use relative rather than absolute links, and scripts that use the domain name will need modification at launch time if you do it this way. There is not really a "right" way to do it; whatever "works" best for you is what you should use.

That said, for those just starting out who have limited shell experience or might not be careful about designing "portable" sites, the "mirror" is a great thing!

--rlparker

Tags: dreamhostold server