Jump to content

Question

Posted

Hello,

I am currently trying to enable ForceSSL in htaccess. However each time it is enabled, it gives off a "Redirect Loop" Error on the browser. 

Code Used:

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=307,NE,L]

Full htaccess

########################################################
# package:    minPHP
# filename:   .htaccess
########################################################

<Files ~ "\.(pdt)$">
   order deny,allow
   deny from all
</Files>

# Protect against Clickjacking
Header append X-Frame-Options "SAMEORIGIN"

RewriteEngine on

# Force HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=307,NE,L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php

RewriteCond %{REQUEST_URI} ^(.*)/install.php$
RewriteRule install.php %1/install/ [R=301,L]

Thanks, Jacob

3 answers to this question

Recommended Posts

  • 0
Posted

That's a server issue, it could be you have force SSL somewhere else or it could be you have MOD_SPDY which will play up if you don't force it another way... Best to contact your host.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...