View Full Version : Maintenance Mode : I need to make 'private' my website for some days
Jan1980
05-09-2009, 06:41 AM
Hello,
Does anybody knows how could I set to 'private' my website for some days ?
I'm remaking its design and, even if I use a local install to play in it, I finish always doing a bunch of 'final changes' online (and some scripts needs an online environment, too).
I'm using WordPress as a CMS and I think I can't move around/rename the folders in a wild way without risks. There's a plugin to put a blog in maintenance mode, but it's a bit buggy and I've read quite of opinions reporting issues, so I'd like to avoid it.
Then I though in some kind of rewritting the permissions, just to avoid the acces to the blog, and redirecting the people to a "Please come in a few days" HTML page.
Thanks if anyone can explain me how to do such a thing, if possible !
Many thanks,
Jan
Early Out
05-09-2009, 06:48 AM
I think the easiest way is to create a "Please come back" HTML page, call it something like tempclosed.html, and stash it under public_html. Then put this line in your .htaccess file:
DirectoryIndex tempclosed.html
That tells the operating system to cough up tempclosed.html when someone points to your domain, instead of index.html (or index.php). Just remember that this change also applies to your visits to the site, so to test things, you'd have to point your browser explicitly to example.com/index.html instead of just example.com.
Jan1980
05-09-2009, 07:17 AM
Many thanks, I'm going to try it out.
Do you think it would work in a folder containing the blog ? Like www.page.com/blog ?
I think I have an specific .htacces for it, so I guess it'd do, but just in case :cool:
Early Out
05-09-2009, 07:21 AM
Yes, I think it should work in a subdirectory - your tempclosed.html file would also need to be in public_html/blog, instead of directly under public_html. If there's no .htaccess in "blog," you can just create one with a single line in it.
felgall
05-09-2009, 01:51 PM
With Wordpress you might find it easier to just install the closed for maintenance plugin from http://wordpress.org/extend/plugins/maintenance-mode/ that way you can still access your blog even though others can't.
Ferdinand
05-10-2009, 06:07 AM
With Wordpress you might find it easier to just install the closed for maintenance plugin from http://wordpress.org/extend/plugins/maintenance-mode/ that way you can still access your blog even though others can't.
And the plugin is working just fine. I use it regularly.
Jan1980
05-12-2009, 09:04 AM
The .htaccess solution worked just perfectly for me. Thanks a lot.
The plugin are several files to do what a single line does, plus more than one user in the WP forums reported some issues.
So a big thanks ! :)
felgall
05-12-2009, 01:18 PM
The difference between the .htaccess solution and the plugin is that the htaccess solution locks out everyone including you while the plugin solution leaves you with full access to everything in the blog and just locks everyone else out.
mhJr_
05-12-2009, 10:36 PM
Hello,
http://www.shopfuze.com/img1.jpgDoes anybody knows how could I set to 'private' my website for some days ?
I'm remaking its design and, even if I use a local install to play in it, I finish always doing a bunch of 'final changes' online (and some scripts needs an online environment, too).
I'm using WordPress as a CMS and I think I can't move around/rename the folders in a wild way without risks. There's a plugin to put a blog in maintenance mode, but it's a bit buggy and I've read quite of opinions reporting issues, so I'd like to avoid it.
Then I though in some kind of rewritting the permissions, just to avoid the acces to the blog, and redirecting the people to a "Please come in a few days" HTML page.
Thanks if anyone can explain me how to do such a thing, if possible !
Many thanks,
Jan
With Wordpress you might find it easier to just install the closed for maintenance plugin from http://wordpress.org/extend/plugins/maintenance-mode/ that way you can still access your blog even though others can't.
I don't think there's an question Felgall doesn't have an answer to. Definitely go this route. Not only is it better than setting up a closed.html (which is perfectly fine IMO) but it's more versatile and simple.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.