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

how_to_configure_litecart_with_cloudflare [2016/09/02 23:56]
admin created
how_to_configure_litecart_with_cloudflare [2017/04/29 22:15] (current)
217.208.142.58 [How to setup LiteCart with CloudFlare Flexible SSL]
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.txt ยท Last modified: 2017/04/29 22:15 by 217.208.142.58