User Tools

Site Tools


how_to_configure_litecart_with_cloudflare

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
how_to_configure_litecart_with_cloudflare [2017/04/29 22:15]
A User Not Logged in [How to setup LiteCart with CloudFlare Flexible SSL]
how_to_configure_litecart_with_cloudflare [2020/08/16 17:19] (current)
A User Not Logged in old revision restored (2016/09/02 23:56)
Line 17: Line 17:
 4. In your LiteCart installation. Open ~/includes/compatibility.inc.php and insert the following lines at the bottom: 4. In your LiteCart installation. Open ~/includes/compatibility.inc.php and insert the following lines at the bottom:
  
-  if (isset($_SERVER['HTTP_CF_VISITOR'])) {+  if (isset($_SERVER['HTTP_CF_VISITOR']) {
     if (preg_match('#https#i', $_SERVER['HTTP_CF_VISITOR'])) {     if (preg_match('#https#i', $_SERVER['HTTP_CF_VISITOR'])) {
       $_SERVER['HTTPS'] = 'On';       $_SERVER['HTTPS'] = 'On';
how_to_configure_litecart_with_cloudflare.1493496957.txt.gz ยท Last modified: 2017/04/29 22:15 by A User Not Logged in