将https:// domain /登陆页面重定向到http:// domain /登陆页面

问题描述 投票:0回答:1

我有一个带有SSL的域,所有引荐链接和指向该域的其他链接都使用https:// domain。 COM

我只想在索引页面上使用Feedjit访问者实时统计信息。 但是它们不支持https。 结果是统计信息不起作用。

因此,现在我希望编辑htaccess,以便所有登陆均位于https:// domain上。 com或https://domain.com/index。 php都以http:// domain结尾。 COM /

我在htaccess文件中当前只有的其他东西是直接www到无www,否则我在登录菜单按钮中放置了完整路径,因此所有登录都转到https:// domain,com / login,php对我来说可以。

我使用linux服务器/ cpanel

apache .htaccess redirect ssl rewrite
1个回答
1
投票

将此添加到www到非www规则下方站点根目录中的.htaccess文件中。

# Force http:
RewriteCond %{HTTPS} =on
RewriteRule ^(index\.php)?$ http://%{HTTP_HOST}/$1 [R=301,L]
© www.soinside.com 2019 - 2024. All rights reserved.