Hi Community,
i want to redirect every http request to https.
I found the "mod_rewrite" for this problem, but it doesn't work.
I tried it in a many ways,
hier some of them:
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^/(.*)$ https://www.site.de [R=301,L]
RewriteEngine On
RewriteCond %{SERVER_PORT} ^!443
RewriteRule ^/(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteEngine On
RewriteCond %{SERVER_PORT} ^!443
RewriteRule (.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
can somebody help me?