Tuesday 15 March 2011

.htaccess - https Redirection issue with whmcs -


I have a whmcs installation in / whmcs and wanted to apply https to my whole website, so I have one. This code added to Htacess is at the root of my website below:

  RewriteEngine On RewriteCond% {HTTPS} Close RewriteRule (. *) Https: //% {HTTP_HOST}% {REQUEST_URI} [R = 301, L] The problem is that there are some issues of whmcs when some modify, and my clients could not attach the file to their ticket.  

With their support, I was asked to add one. To override the instructions in Htaccess / whmcs root. I tried many times without success, so I'm asking for help here.

I have two options:

1- To ignore the redirection to the root. Adding an .htaccess to /hm Htacess

2- Modify the route to ignore the / hmaccesscess / wmcs subfolder

Any help is welcome.

You can extract the / whmcs folder as your rule Prevented

  RewriteEngine RewriteCond% {HTTPS} = off RewriteRule ^ (?! WHMCS /) https: //% {HTTP_HOST}% {REQUEST_URI} [R = 301, NC, L] / Code> 

No comments:

Post a Comment