Jump to content

NGINX redirect all traffic except to whmcs directory


artetatu

Recommended Posts

I am running whmcs billing system using NGINX, my whmcs location is in mydomain.com/whmcs/

 

I want to redirect all request to my site to HTTPS www except whmcs folder (whmcs has its HTTPS redirection)

 

Some whmcs pages is redirected to HTTP by whmcs itself (knowledge, announcements page) and else in HTTPS

 

if i don't "except whmcs folder" on my rule, it will give error loopping on some whmcs pages (knowledge, announcements )

Link to comment
Share on other sites

 

thats don't work for whmcs,,

my whmcs is using https too..but some pages (knowledge, announclemts etc) are redirected to http by whmcs

 

so if i redirected all pages too HTTPS, some pages (knowledge, announclemts etc) will show redirect looping error (redirected to https but redirected again to http by whmcs engine)

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