I am trying to program a redirect from http to https and also delete the www. It already does, my problem is that if you write: http://www.dominio.com/something/ should change to https://dominio.com/something/ and does not work, does not detect anything after .com anyone me help?
RewriteEngine On
RewriteCond% {HTTPS} off
RewriteCond% {HTTP_HOST} ^ www.midominio.com
RewriteRule ^ (. *) $ Https://midominio.com/$1 [R = 301, L]
RewriteCond% {HTTPS}! = On
RewriteRule ^ / (. *) Https:% {SERVER_NAME} // / $ 1 [R = 301, L]