Jump to content

WHMCS SSL issue; only for index.php.


FGServers

Recommended Posts

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated