[TYPO3-english] Under maintenance page while upgrading

Björn Pedersen pedersen at frm2.tum.de
Tue Nov 22 08:53:35 CET 2011


Am 21.11.2011 22:06, schrieb yanagik317 at netscape.net:
> Typo3sters,
> 
> I sort of searched through the archives and couldn't really find.  Is there "easy" way to put up a little "Under Maintenance" type of page while I upgrade Typo3?
> 
> I tries playing around with changing DirectoryIndex but that didn't really work.  I still got the usual front page instead of my cute little maintenance.html.
> 
> I'm vaguely thinking I can just change DNS while upgrading, but that would steer even my own laptop (unless I play with /etc/hosts, blah).  Typo3Wiki says to "think of active users" and I will, at least of those who may update pages by telling them not to, but what of the general public access?  Would they see some weird stuff while schema change is being applied to the database, etc?
> 
> Obvious newbie I am.  I'd appreciate input from those that have gone through this before.
> 
> Thank you,
> 
> --Koji
Best is to use a RewriteRule to redirect all calls to a maintenace page
( this is friendlier to google as well). This way, you can exclude your
own IP and check the page before going public again.

Pust this into your vhost conf.
#############################################
# enable the next 3 lines during maintainance
#RewriteCond %{REMOTE_HOST} !^your\.iP\.xx\.xx
#RewriteCond %{REQUEST_URI} !^/maintain.php [NC]
#RewriteRule .* /maintain.html  [R=403,L]
###############################################
Björn



More information about the TYPO3-english mailing list