I have the next code in my .htaccess
file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.example.com%{REQUEST_URI} [R=301,NC,L]
RewriteCond %{HTTP_HOST} !^(www|subdomain) [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]
</IfModule>
With this code the following URLs are redirecting everyone to https://www.example.com
.
http://example.es
http://www.example.es
https://example.es
But the next one is not redirected:
https://www.mydomain.es
Could some one help me with this problem?