I have a problem which I've never had before; normally I always use a known hostingcompany and never had any issue's with SSL (they implement it for free at every domain you set-up).
But now I'm dealing with another host for some reason and apparently they have another approach of dealing with SSL. When I don't use the HTTPS option for a page in CMSMS everything works fine; you could access the page at both the HTTP or HTTPS version. But when I'm using the HTTPS-checkbox I'll get a 'Too Many Redirects' error from Google Chrome. It somehow got caught in a loop.
And another issue; normally I use this .htaccess to force everyone towards the HTTPS version;
Code: Select all
#Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Link to http://website.com then redirect to http://www.website.com
RewriteCond %{HTTP_HOST} ^domain\.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# except for form POSTS
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
I use mod_rewrite in my config.php for Pretty URL's.