Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 05-08-2017 13:34:11

juanstg
Member
From: Evansville, IN
Registered: 02-26-2010
Posts: 78

SSL Too Many Redirects

I'm feeling kinda on the Homer Simpson "Doh" side.  I just installed V9 on a site and can't access the management side because of the SSL too many redirects issue. 

I've tried removing the htaccess in not only the public directory but the private directory as well.  Any help is greatly appreciated.

public directory httaccess file:

Code:

 ErrorDocument 404 http://www.mywebsite.com


RewriteEngine On

# If we receive a forwarded http request from a proxy...
RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR]

# ...or just a plain old http request directly from the client
RewriteCond %{HTTP:X-Forwarded-Proto} =""
RewriteCond %{HTTPS} !=on

# Redirect to https version
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

private directory htaccess:

Code:

 AuthName ByPassword
AuthUserFile /none/
AuthGroupFile /none/
AuthType Basic
Require valid-user


Offline

 

#2 05-09-2017 07:37:17

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: SSL Too Many Redirects

K9 will handle all these rewrites itself, the only ones you need to worry about are those cpanel rewrites.  If I were you, I'd try this:

Code:

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^/[0-9]+\..+\.cpaneldcv$ - [L,PT]
RewriteRule ^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ - [L,PT]

RewriteRule ^index.php - [L,PT]
RewriteRule ^$ index.php?COREseourl=/ [L,PT]
RewriteRule ^/$ index.php?COREseourl=/ [L,PT]
RewriteRule ^sitemap\.xml utilities/sitemap.xml [L,PT]
RewriteCond %{REQUEST_URI} ^/
RewriteCond %{REQUEST_URI} !\.(xml|css|js|gif|jpg|jpeg|png|pdf)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?COREseourl=/$1 [L,PT]

Nick Hendler

Offline

 

#3 05-09-2017 13:00:52

juanstg
Member
From: Evansville, IN
Registered: 02-26-2010
Posts: 78

Re: SSL Too Many Redirects

Thanks for the info Nick.  I tried this but it didn't work.  I think since I am on a fresh install I will just wipe it all and try again, I did run across some errors on the original install because I forgot to chmod my private directory.  I'll update when done.



Offline

 

#4 05-10-2017 07:00:26

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: SSL Too Many Redirects

First, turn off SEO.  Remove the .htaccess.  Assuming the problem goes away.  If it does, then the issue is either on the Apache server side, or with the .htaccess file contents.


Nick Hendler

Offline

 

Board footer