Added redirect from HTTP to HTTPS
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
83a7b7bb77
commit
6d8b44d139
|
@ -1,7 +1,11 @@
|
|||
RewriteEngine On
|
||||
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteCond %{ENV:HTTPS} !=on
|
||||
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
|
||||
|
||||
# rewrite jim.2martens.de to 2martens.de
|
||||
RewriteCond %{HTTP_HOST} ^jim\.2martens\.de [NC]
|
||||
RewriteCond %{SERVER_NAME} ^jim\.2martens\.de [NC]
|
||||
RewriteRule ^(.*)$ https://2martens.de/$1 [L,R=301]
|
||||
|
||||
# custom 404 error page
|
||||
|
|
Loading…
Reference in New Issue