2017-08-02 9 views
0

したがって、すべてのHTTPリクエストをHTTPSにリダイレクトするのを手伝っていますが、これらのいずれかを.htaccessに追加するとループエラーが発生することがあります。HTTPをHTTPSからHTTPSにリダイレクトする(Opencart v1.5.6.4)

ReWriteCond %{SERVER_PORT} 80 
Or 
RewriteCond %{HTTP:X-Forwarded-Proto} !https 
Or 
RewriteCond %{HTTPS} off 
Or 
RewriteCond %{HTTPS} !on 
Or 
RewriteCond %{HTTP:X-Forwarded-SSL} =off 

これは(それが重要であっても)共有ホスティングです。これは、のphpinfoファイルで、私はこれを試してみてください.htaccessで何this guy suggested

_SERVER["https_proxy"] 

http://www.supawhip.com.au/phpinfo.php

答えて

1

のように.htaccessファイルを経由してこれを使用することができますどのようにあまりにもわかりません。また、

<IfModule mod_rewrite.c> 
RewriteEngine On 
# This will enable the Rewrite capabilities 

RewriteCond %{HTTPS} !=on 
# This checks to make sure the connection is not already HTTPS 

RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L] 
# This rule will redirect users from their original location, to the same location but using HTTPS. 
# i.e. http://www.example.com/foo/ to https://www.example.com/foo/ 
# The leading slash is made optional so that this will work either in httpd.conf 
# or .htaccess context 
</IfModule> 

/config.php

// HTTP 
define('HTTP_SERVER', 'https://www.supawhip.com.au/'); 
// HTTPS 
define('HTTPS_SERVER', 'https://www.supawhip.com.au/'); 

/admin/config.php

// HTTP 
define('HTTP_SERVER', 'https://www.supawhip.com.au/admin/'); 
define('HTTP_CATALOG', 'https://www.supawhip.com.au/'); 

// HTTPS 
define('HTTPS_SERVER', 'https://www.supawhip.com.au/admin/'); 
define('HTTPS_CATALOG', 'https://www.supawhip.com.au/'); 
+0

まだ動作していません。 'このページは機能していません。 ' ' supawhip.com.auはあなたに何度もリダイレクトされました。 – helpfulguy

関連する問題