so after moving to new server i had a few problems in cache but now everything is ok but i noticed that the language won't switch,
i have 3 languages in the site and i have 750 products translated to 3 languages
i can see that i have them on homepage but when i try to change the langauge it dosent work
and the admin keep logging out every time i refresh the homepage
my oc Version 3.0.3.7
the site is top-10.se
tried to modify the htaccess file but nothing help cleard the cache changed the storage path nothing seems to work
Code: Select all
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
# 2. In your opencart directory rename htaccess.txt to .htaccess.
# For any support issues please visit: http://www.opencart.com
# Prevent Directoy listing
# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://%{HTTP_HOST}? [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.top-10\.se [NC]
RewriteRule (.*) http://top-10.se/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://top-10.se/$1 [R=301,L]
RewriteCond %{HTTP_HOST} top-10\.se [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.top-10.se/$1 [R,L]
Code: Select all
// DIR
define('DIR_APPLICATION', '/home/vol16_2/epizy.com/epiz_28995094/top-10.se/htdocs/catalog/');
define('DIR_SYSTEM', '/home/vol16_2/epizy.com/epiz_28995094/top-10.se/htdocs/system/');
define('DIR_IMAGE', '/home/vol16_2/epizy.com/epiz_28995094/top-10.se/htdocs/image/');
define('DIR_STORAGE', '/home/vol16_2/epizy.com/epiz_28995094/top-10.se/htdocs/storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');