2017-08-02 3 views
0

Also, ich helfe einem Kerl, alle HTTP-Anfragen an HTTPS umzuleiten, aber immer einen Schleifenfehler zu bekommen, wenn er in .htaccess hinzufügt.Erzwinge HTTP-Umleitung zu 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 

Dies ist ein (wenn das überhaupt Angelegenheiten) Shared Hosting. Dies ist die phpinfo Datei und bin nicht sicher, wie ich das über .htaccess wie das, was this guy suggested

_SERVER["https_proxy"] 

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

Antwort

1

In .htaccess versuchen diese verwenden:

<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> 

auch in /config.php

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

und in

// 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

Immer noch nicht funktioniert und bekommen dies. 'Diese Seite funktioniert nicht ' ' supawhip.com.au leitete Sie zu oft um.' – helpfulguy

Verwandte Themen