image

Maintainace. Redirect all users except yourself to a maintainance page

RewriteEngine on
RewriteCond %{REQUEST_URI} !/upgrade.html$
RewriteCond %{REMOTE_HOST} !^123\.456\.789\.10
RewriteRule $ http://www.website.com/upgrade.html [R=302,L]

redirect domain.com to www.domain.com
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Leave a Reply