我的.htaccess文件中有下一个代码:
<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>
使用此代码,以下 URL 将所有人重定向到https://www.example.com.
http://example.eshttp://www.example.eshttps://example.es
但是下一个没有重定向:
https://www.mydomain.es
有人可以帮我解决这个问题吗?