网站不断重定向到HTTP当我访问HTTPS,没有明显的理由 [英] Site keeps redirecting to HTTP when I visit HTTPS, for no apparent reason

查看:238
本文介绍了网站不断重定向到HTTP当我访问HTTPS,没有明显的理由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获得SSL工作我的网站LAMP服务器上。当我键入​​该网站的 https://www.example.com任何网页地址它被重定向到<一个HREF =htt​​p://www.example.com相对=nofollow> http://www.example.com 。

I am trying to get SSL working for my site on a LAMP server. When I type any page address on the site as https://www.example.com it gets redirected to http://www.example.com.

我觉得SSL将工作(或者至少我能得到它),如果我能得到服务器通过HTTPS,但它只是拒绝,始终更改为HTTP。该网站使用的Joomla!但我pretty的肯定是不相关的,如:

I think the SSL would work (or at least I could get it to) if I could get the server to go through HTTPS but it just refuses, and always changes to HTTP. The site utilises Joomla! but I am pretty sure it's not relevant, as:

  • 我还有一个几乎相同的Joomla!网站在同一台服务器上,和SSL工作顺利。

  • I have another almost identical Joomla! site on the same server, and SSL works successfully.

SSL证书已得到遏制和有效并正确安装。

SSL certificate has been checked and is valid and installed correctly.

有没有PHP的重定向。

There are no PHP redirects.

有没有的.htaccess重定向直接有关的HTTP / S等。

There are no .htaccess redirects directly pertaining to HTTP/S, etc.

的.htaccess

Options +FollowSymLinks

RewriteEngine On

RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]

RewriteRule ^order/payment(/?.*)$ /payment [R=301,L]
RewriteRule ^order/complete$ /index.php?option=com_cake&task=orders&id=complete [L]
RewriteRule ^order2$ /index.php?option=com_cake&task=orders&id=index [L]
RewriteRule ^order/2$ /index.php?option=com_cake&task=orders&id=index [L]
RewriteRule ^payment/(.+)$ /index.php?option=com_cake&task=payments&id=$1 [L]
RewriteRule ^admin/(.+)$ /index.php?option=com_cake&task=admin&id=$1 [L]

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]

那么,为什么是网站重定向?任何想法?

So why is the site redirecting? Any ideas?

有关谁知道的Joomla!我尝试安装这个插件 http://www.yireo.com/software/joomla-扩展/ SSL-重定向,并试图让我主页上的安全选项,这是行不通的。我想这是因为它可能是工作,但服务器重定向到HTTP再次,一些未知的原因。

For anyone who knows Joomla! I tried installing this plugin http://www.yireo.com/software/joomla-extensions/ssl-redirect and tried enabling the 'Secure' option on my home page and it doesn't work. I assume this is because it probably is working but the server is redirecting to HTTP again, for some unknown reason.

推荐答案

最简单的办法,以排除任何的Joomla配置问题是上传一个空文件到根目录下。 ssltest.html调用它,然后使用https访问该文件。如果它仍然重定向,那么你有一台服务器/证书安装问题,您的主机需要检查出来。

The easy way to rule out any Joomla configuration issues is to upload an empty file in to the root directory. Call it ssltest.html, then access that file using https. If it still redirects then you have a server/certificate installation issue and your host needs to check it out.

这篇关于网站不断重定向到HTTP当我访问HTTPS,没有明显的理由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆