[英]Stop subdomain redirecting to main domain
当我搜索subdomain.domain.es
我被重定向到domain.es。 htaccess文件中的代码:
RewriteEngine On
RewriteBase / RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://dominio.es/$1 [R=301,L]
我的托管公司为我提供了htaccess,因此我的网站已从http重定向到https,但是我不知道此代码的含义。 我是Web编程的新手,希望能为您提供帮助。
非常感谢!
这个答案对我有用。 我希望这可以帮助其他人!
RewriteEngine On RewriteCond%{HTTPS} off RewriteRule。* https://% {HTTP_HOST}%{REQUEST_URI} [L,R = 301]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.