2012-11-17, 12:33:04
I want to make my site offline while I work on it. Would someone mind telling me how to do that?
thanks.
thanks.
How do I make site offline?
|
2012-11-17, 12:33:04
I want to make my site offline while I work on it. Would someone mind telling me how to do that?
thanks.
2012-11-17, 13:33:47
There is no built in way to do maintenance mode.
You could do a deny all in htaccess.
2012-11-17, 13:44:08
Thanks Shawn... appreciate it!
2012-11-17, 20:33:14
I don't need it very often, so I have a fully-manual method for putting up a 'Maintenance' message, but still allowing me to access the site.
It involves adding a few lines to the root .htaccess file (which can be simply commented when not required) and a maintenance page, also in the root directory. Add to root .htaccess, immediately below the existing RewriteBase line: Code: ### Maintenance Mode ### Add the file maint.php~ (with the trailing tilde) in the website root: PHP Code: <?php To enable maintenance mode, insert the current public IP address of your workstation and remove the single comment marks from three lines in .htaccess; rename maint.php~ to maint.php. Return the site to live condition by reversing this. Your current public IP address can be found from, for example, http://www.whatsmyip.org/.
--
Nick.
2012-11-17, 23:22:46
Thanks a lot Nick, That's a great way to put up a temp Maintenance mode.
Appreciate your help, jumper
2012-11-18, 01:02:30
or quick and dirty without pretty handling
order allow,deny allow from 255.0.0.0 deny from all
2012-11-19, 10:08:15
If you need to cease down only main, index page for a short amount of time, just upload a prepared index.html into your root directory.
Assuming that .htm/.html files have higher priority than .php, incoming users will see index.html page.
Addons: blue business theme, Online Visitors, Notepad
|
« Next Oldest | Next Newest »
|