Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
apache:maintenance-redirect [2011-04-06 18:54:09] garrett.plasky Approved |
apache:maintenance-redirect [2011-05-13 23:58:44] (current) garrett.plasky Approved |
||
---|---|---|---|
Line 9: | Line 9: | ||
===== Instructions ===== | ===== Instructions ===== | ||
- Create a page with the desired content, save it as maintenance.html, | - Create a page with the desired content, save it as maintenance.html, | ||
- | - In the root (public_html/ | + | - In the root (public_html/ |
Options +FollowSymlinks | Options +FollowSymlinks | ||
RewriteEngine On | RewriteEngine On | ||
Line 16: | Line 16: | ||
RewriteCond %{REMOTE_ADDR} !^10.0.0.1$ # Change this to your ip address so that you can bypass the redirect | RewriteCond %{REMOTE_ADDR} !^10.0.0.1$ # Change this to your ip address so that you can bypass the redirect | ||
RewriteRule .* / | RewriteRule .* / | ||
- | </code> | + | </sxh> |
Your site should now redirect users to the maintenance.html page when they visit your site. Remember that if you added your IP address to the filter that the redirect wont happen when you visit the site. If you want to test the redirect you can comment out that line using a #. | Your site should now redirect users to the maintenance.html page when they visit your site. Remember that if you added your IP address to the filter that the redirect wont happen when you visit the site. If you want to test the redirect you can comment out that line using a #. | ||
{{tag> | {{tag> |