Jump to content

https redirect


Doulos

Recommended Posts

For some reason when I enter the https address into the General Settings/WHMCS SSL System URL area, I get this redirect error when clicking on a link the WHMCS redirects from http to https:

Redirect Loop

 

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

 

The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.

If I delete the https setting from WHMCS and enter the exact same link manually, it works fine.

 

Any ideas what I should do?

Link to comment
Share on other sites

I have already check with my server manager and the only response I can get from them is:

This appears to be a configuration issue with your script

 

Redirect Loop

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

 

 

Please let us know if you have any questions or require further assistance.

 

I have looked at my htaccess file but I don't see anything, though I do sometimes tend to see what I expect instead of what is actually there - and I am no expert by a long shot.

 

Htaccess file attached if someone wants to look at it.

htaccess.txt

Link to comment
Share on other sites

your problem is a match among one of the many that you have defined in the RewriteCond's and then this rule

RewriteRule ^(.*) %{HTTP_REFERER} [R=301,L]

 

the condition is checking the referer and if it has a match the rule then redirects back to the referer then the referer's browser then trys to resend again, hence your redirect loop.

try changing the rewrite rule to simply fail with a 403 error

RewriteRule ^(.*) %{HTTP_REFERER} [F,L]

Link to comment
Share on other sites

That did not work. I even tried just replacing the htaccess file with a blank one, and it still is giving me the same error. Here is the error I am getting with Opera:

The URL was redirected to . Please click the link to go there.

Notice there is no URL. The correct URL does show up in the browsers address bar.

 

As soon as I delete the https address from WHMCS general settings, I am able to connect by just refreshing the screen that a moment ago got the above error.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...
  • 5 months later...

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