FGServers Posted April 12, 2014 Share Posted April 12, 2014 Hello, I own the domain https://www.fgservers.net, and are experiencing a problem with our portal. Whenever loading https://www.fgservers.net/portal, you will get an Redirect Loop issue. This is only with an SSL enabled, yet when visiting the https://www.fgservers.net/portal/cart.php you will notice that the page loads flawlessly. I have not modified any of the script, and only the header.php and footer.php were changed. To clarify, this was happening 2 weeks before the Heartbleed SSL problem. Any help would be appreciated. Below is my htaccess.txt which was my attempt of fixing it, but failed. RewriteEngine On # Announcements RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ ./announcements.php?id=$1 [L,NC] RewriteRule ^announcements$ ./announcements.php [L,NC] # Downloads RewriteRule ^downloads/([0-9]+)/([^/]*)$ ./downloads.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^downloads$ ./downloads.php [L,NC] # Knowledgebase RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] RewriteEngine on Options +FollowSymlinks #Rewrite the URL for WHMCS to always use https except for the whmcs/dl.php file RewriteCond %{REQUEST_URI} !^/portal/dl.php [NC] RewriteCond %{REQUEST_URI} ^/portal/ [NC] RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://www.fgservers.net/$1 [R=301,L] 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted April 13, 2014 Share Posted April 13, 2014 It looks like you are trying to force https for the your entire WHMCS install. However, WHMCS is forcing it back to http, for all pages except those that need SSL. So, it will run in a continuous loop with your htaccess redirecting to https and WHMCS redirecting it back to http for some pages (including index.php). You might make sure all URLs are setup with https in your admin portal (under Settings >> General Settings). Make sure all the URL fields have your URL set with https (Domain, Logo URL, WHMCS System URL, WHMCS SSL System URL). I believe the WHMCS SSL System URL blanks itself out, when you do this, after you save the information. However, it should be fine. See if that will make WHMCS force all URLs to HTTPs. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.