
Originally Posted by
mc12345678
In your cases of checking what language is being used, unless you have some reason to redirect one language that is installed to your system to another, you can simplify this and also ensure that it doesn't matter what language is installed:
Code:
HTTP_SERVER . DIR_WS_CATALOG . 'index.php?main_page=index&language=' . $_SESSION['languages_code']
Note I used a single quote at the end of the equals sign, but you may need to use a double quote depending on what was used to open that text.
Thanks everybody. But I resolved my issue, simply changing HTTP_SERVER definition inside includes/configure.php, I forced "https://" prefix even it's supposed to be a "http://"
define('HTTP_SERVER', 'https://www.pechesudv155.owally.com');
define('HTTPS_SERVER', 'https://www.pechesudv155.owally.com');
Browsing product list "source code" inside FireFox, I remarked some links begun per "https:" and some per "http:" creating some strange results.
Maybe it's also caused my hosting company who added some code inside my .htacces forcing "https://" usage everywhere, so I each time I click on a link with "http", a new session is created.
.htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) https://%1%{REQUEST_URI} [L,R=301]


Bookmarks