Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Placing New site under construction


Norcal5

Recommended Posts

I am having trouble configuring the site so it loads to a "Under Construction" page.

 

Which htaccess file should I use to place a temporary redirect to the construction page?

 

or is there another way?

 

Thanks in advance!

Link to comment
Share on other sites

Hi Raul,

 

On some severs it will suffice to put an index.html in the root of the shop this will override the index.php with the under construction message or image.

 

If this does not work you would need to rename your index.php to index.php_old temporary and upload the index.html

 

that is the easiest way.

 

Although a htaccess redirect is also ok

 

Regards

Joli

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

The problem is, if someone comes in on a bookmarked URL, they won't encounter the index.html file. Try it. One possibility is to use /.htaccess to redirect any IP address but your own to a "Sorry... site under construction" page (but do you know if anyone else shares your PC's IP address?). You can password protect the catalog directory, so you (or anyone else trying to get in) will be challenged for an ID and password. The problem with that is there may not be any place to tell visitors that it's only temporary, and they may think the store is permanently closed. If you leave your site directory open, with /index.html "Sorry...", and password protect everything below that level, that could work. If a visitor goes directly to a lower level directory and is bounced, hopefully they'll try the site root and see the "Sorry..." message.

 

I would suggest that if you're going to have your site down for more than a few minutes to do work, that next time you do your construction work and experimentation in a test or dev directory, and move it over to production when you're ready to go. That way you can simply disable things for just a few minutes and then pull back the curtains.

Link to comment
Share on other sites

@@MrPhil

@@Norcal5

 

Yes MrPhil is correct best way is a test directory for development my way you may be caught in your underwear or worse without :blush: heheh

 

I just use as a quick fix for new sites where it is unlikely they have been indexed by search engines.

 

Regards

Joli

 

PS: Just thinking ( which can be dangerous) replacing store_logo.png or header background image with an apology under construction Image would show on all pages .

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...