[英]How to redirect sub domain from https to http?
I need to redirect subdomain from https to HTTP https://jokes.domain.com to http://jokes.domain.com I tried using.我需要将子域从 https 重定向到 HTTP https://jokes.domain.com到http://jokes.domain.com我尝试使用。 Htaccess but failed
Htaccess 但失败
i tried to do this:我试着这样做:
#RewriteCond %{HTTPS} on
#RewriteCond %{HTTP_HOST} ^subdomain\.
#RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
anyone can help?任何人都可以帮忙吗? and please tell me if i need to do it from the subdomain librery.Htaccess or from main.Htaccess file thanks !
请告诉我是否需要从子域 librery.Htaccess 或 main.Htaccess 文件中执行此操作,谢谢!
RewriteEngine On
RewriteRule ^/(.*)$ http://%{HTTP_HOST}/$1 [L,R]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.