Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 06:46:29 PM

Pages: [1]   Go Down
  Print  
Author Topic: Testing a replacement site?  (Read 1296 times)
franontheedge
Trekkie
**
Offline Offline

Posts: 15


« on: August 09, 2009, 11:50:02 AM »

Hi,

If I wanted to upload my newly designed site - but not to replace the old one until I'm ready, can I upload it as a test... to a test folder?  Or something like that?

If you can, how do I do that?
Logged
Matthew Alan
Jabba the Hutt
*****
Offline Offline

Posts: 738


« Reply #1 on: August 09, 2009, 02:04:23 PM »

Should be able to. Make sure you're using paths such as /images/1.jpg and not yourdomain.com/images/1.jpg in your coding.

Create a new folder on FTP/cPanel and upload all the files you want to test there.
Logged
MarkCale aka Madscape
Spaceship Navigator
*****
Offline Offline

Posts: 78



« Reply #2 on: October 27, 2009, 12:05:33 AM »

you can create a subdomain for testing your new website, but once you have finished the new website and ready to go live you will need to move the content up to the primary domain level.
Logged

Forum Lurker and Former Galactic Tekkie, mostly a jack of trades and master of none!  Mark H. Cale
darkwolf
Guest
« Reply #3 on: October 31, 2009, 12:53:22 AM »

Another alternative, would be to place all of the new site files into a separate folder under public_html (if redoing primary domain) , then once your new site is ready, you can use the following to automatically redirect your site to the new location, without users seeing the redirection:

RewriteEngine On
Options +FollowSymlinks

RewriteCond %{HTTP_HOST} domain.com$
RewriteCond %{REQUEST_URI} !FOLDERNAME/
RewriteRule ^(.*)$ FOLDERNAME/$1

The above would be placed in your .htaccess file in the public_html.

Logged
Pages: [1]   Go Up
  Print  
 
Jump to: