通過的.htaccess使用在.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/');
and in /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/');
仍然沒有工作,並得到它。 'This page is working' 'supawhip.com.au重定向你太多次了.' – helpfulguy