www und http auf "nur" https umleiten
bearbeitet von Jörg ReinholzMoin!
~~~ apache
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443 [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.org
RewriteRule ^(.*)$ https://example.org/$1 [R=301,L]
~~~
[Handbuch: You can also set special flags for CondPattern by appending [flags] as the third argument to the RewriteCond directive, ... 'ornext|OR' (or next condition): Use this to combine rule conditions with a local OR instead of the implicit AND.
](http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewritecond)
Jörg Reinholz