How To Create A Simple Maintenance Page
You could always download a WordPress maintenance mode plugin, but in this case it probably won’t work. When you follow the upgrade instructions on WordPress.org, you’ll notice it says to deactivate all your plugins.
So, here’s how to create a custom maintenance page without a plugin.
Step 1
Create a simple html file and place it in your blog’s root directory. Name it something like, maintenance.html. Inside the maintenance.html file you can put anything you want. “Hi. I’m out to lunch for a few moments while the construction crew is busy at work . . .”
But why stop there? Your site is better than that. Customize the page with your site’s colors and images. Maybe add a video or your latest blog post. CSSgirl wrote some tips and shows some examples on the topic of creating a memorable maintenance page.
Step 2
Ok so now you have your maintenance.html page set up; the next step is to redirect everyone to it while you’re doing your upgrade.
Navigate to your blog’s root directory in your web hosting control panel and open your .htaccess file.

Once opened, you’re going to add this code at the top:
# Use this code to redirect visitors to maintenance.html file while upgrading
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^618\.124\.259\.25
RewriteCond %{REQUEST_URI} !/maintenance.html$
RewriteRule $ http://your-site.com/maintenance.html [R=302,L]
The yellow parts above are the areas you need to change. Visit What is my IP address? to find your IP address and put those numbers in under the first yellow highlight. Next add the url path to your own maintenance page in the second yellow part.
And that should do it. Your site should now show a maintenance page to everyone except you (your IP address was whitelisted). To see what everyone else sees, add a # sign in front of the IP line:
# RewriteCond %{REMOTE_ADDR} !^618\.124\.259\.25
The # comments lines out.
When you’re finished, leave the code in your .htaccess file for next time. To disable the code, just add a # in front of each line:
# Use this code to redirect visitors to maintenance.html file while upgrading
# Options +FollowSymlinks
# RewriteEngine on
# RewriteCond %{REMOTE_ADDR} !^618\.124\.259\.25
# RewriteCond %{REQUEST_URI} !/maintenance.html$
# RewriteRule $ http://your-site.com/maintenance.html [R=302,L]
Remember, if you need help with upgrades, visit the blog services page and use the contact form there to get in touch with me.















Sun, Aug 16, 2009
Maintaining WordPress