Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

'Site is under maintenance' redirect, except for you (See related posts)

Upgrades woohoo! Tell those lusers to hold their horses while you happily debug. Some .htaccess magic, just sub in your IP:

<IfModule mod_rewrite.c>
        RewriteEngine On
        # 'under construction' override
        RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$
        RewriteRule ^(.*)$ maintenance.html
IfModule>

Comments on this post

md_sagri posts on May 09, 2007 at 06:21
Hi,
I am a bit confused with howt address mentioned in this snippet

RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$


I have my site hosted on eatj.com . When I am upgrading new features, I want to show a maintance page to the users of my site when it is down. Is it the same that this snippet does.
If so, where to put this code in. Please help.

You need to create an account or log in to post comments to this site.


Related Posts