1RewriteEngine On
2RewriteBase /
3RewriteCond %{HTTPS} !=on
4RewriteCond %{HTTP_HOST} ^yourdomain\.com [OR]
5RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com
6RewriteRule .* https://yourdomain.com%{REQUEST_URI} [R=301,L]
1RewriteEngine On
2RewriteCond %{HTTPS} on
3RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
1Options +FollowSymlinks
2RewriteEngine on
3RewriteCond %{REQUEST_URI} !/maintenance.html$
4
5RewriteRule $ /maintenance.html [R=302,L]