Member
Member
hucste   2010-03-04, 18:05
#1

as the title say : how to close gallery when the admin upgrad this ? (for not permit visit ...)

Member
Member
kagutsuchi   2010-03-04, 18:07
#2

You could either set a gallery password while upgrading or change the index page to indicate that an update is in progress.

Member
Member
sbillard   2010-03-04, 20:14
#3

Best is to add an index.html page for during the upgrade as while the upgrade is in progress zenphoto may not function well enought to handle the password protection.

Member
Member
hucste   2010-03-04, 20:16
#4

thks all.

Member
Member
wongm   2010-03-05, 11:30
#5

I have added the following lines at the top of my .htaccess file, just below the "RewriteBase /" directive:

`# For maintenance

RewriteCond %{REQUEST_URI} !/maintenance.html$


RewriteCond %{REQUEST_URI} !/images(.*)$


RewriteCond %{REQUEST_URI} !(.*).jpg$


RewriteCond %{QUERY_STRING} !(.).jpg(.)$


RewriteCond %{REMOTE_HOST} !^1.2.3.4


RewriteRule $ /maintenance.html [L] `


This bit of code redirects all users to the page 'maintenance.html' that is located in the root directory.

When I want to do maintenance I uncomment (remove the '#' symbol) from every line but the first one. Replace 1.2.3.4 with your current IP address so that you can still access the web pages normally.

There are some extra line in there that stop .jpg images being redirected (I use my gallery to host images directly linked elsewhere, and I want them to keep on working)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.