Maintenance Mode During Re-Design

Permalink
I want to take my site down from end users for a few days while I apply a new theme, design, and add content. When I apply C5's maintenance mode, however, it blocks even I, the admin, from editing content/design. Is there another way to apply a kind of maintenance mode while still allowing a logged-in admin to edit and design? Thanks.

bballhermit
 
ThemeGuru replied on at Permalink Reply
ThemeGuru
Make a .htaccess file with the following:

ErrorDocument 403 "under construction url"
Order deny,allow
Deny from all
Allow from  "your ip address"


Remember not to include the ""

Hope that helps!
bballhermit replied on at Permalink Reply
bballhermit
hmm, that doesn't seem to be working, i just added the code you gave me into a pre-existing htaccess file and it still allows the site to be viewed by other ips... does it have to be a unique file?

Here's my full .htaccess file.

# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
ErrorDocument 403 /concrete/single_pages/maintenance_mode.php
Order deny,allow
Deny from all
Allow from  72.117.XXX.XX //My Real IP Inserted Here
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
ThemeGuru replied on at Permalink Best Answer Reply
ThemeGuru
Hey.

Maybe you should only have this snippet in and nothing else.

ErrorDocument 403 "http://www.html2c5.com/under-construction"
Order deny,allow
Deny from all
Allow from  "24.XX.XX.XXX"


Also you might want to turn off pretty urls first. Some people including myself have run into trouble while during the developing stage.
bballhermit replied on at Permalink Reply
bballhermit
hmm, ok, thanks for the ideas... it is still causing a lot of issues... I think I might go the subdomain route instead...
adamjohnson replied on at Permalink Reply
adamjohnson
Another option would be to develop on a subdomain and then, after everything is ready to roll out, move the dev site to your main URL. No downtime.
bballhermit replied on at Permalink Reply
bballhermit
Oh, ok, I like that idea. How would that work, then? I already have an existing C5 site up that I'd like to keep online during the redesign. Can I simply copy the entire folder over to a subdomain to work there while developing, then replace the old when I'm done? How would that work with the MySQL db? Could I continue to have the new site reference the same db? Or should I create a new copy of the db? Thanks.
adamjohnson replied on at Permalink Reply
adamjohnson
To develop on a subdomain, you can just leave your current site alone and have it be on your primary domain (ex: mydomain.com). Next, log into cPanel (or whatever admin panel from your host), select "Add Subdomain". Once you have your subdomain, FTP a fresh copy of Concrete5 to that folder, install it, and begin to develop your new site.

Once you have everything ready to go, check out this article on how to move your site to yourdomain.com:http://www.concrete5.org/documentation/installation/moving_a_site/... . After backing everything up, simply delete whats in the root, and move (read: cut) the files from the domain you had been working on, and paste them into your root directory. Modify one line on the config/site.php file (see the above link for info), and you are done.

Hope that helps.
PanAura replied on at Permalink Reply
PanAura
The best solution to this problem is to simply install an add-on from the marketplace called "Maintenance Editor" by mkly. Once it is installed, you will find the custom settings located in your dashboard. Make sure your default maintenance mode is disabled before activating the add-on. You should be able to navigate to any page via the sitemap and then edit the individual pages while in Maintenance mode. It's a Great add-on.