And the language selector is also not working, it is redirectoing to home.php?reffer=...... The solution is to delete "(strpos($http_location, $HTTP_REFERER) !== 1 && strpos($https_location, $HTTP_REFERER) !== 1)" from get_language.php
It is also a strange code
$http_location =
http://www.website.com/
$HTTP_REFERER =
http://www.website.com/product.php?productid=49&cat=3&page=1
$HTTP_REFERER should be found in $http_location .... I think the other way around..