Latest version of OC.
I use this code in htaccess, so that my home url would be without index common root and stuff like that:
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteRule ^index\.php$ http://www.xxxxxxx.lt? [R=301,L]
It worked, my home url was simple - http://www.xxxxxxxx.lt
BUT there was another problem... When I try to switch languages by clicking on flag it won't switch and stays default.
OK I FOUND SOLUTION, THANKS TO Johnathan
Code: Select all
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://www.yoursite.com? [R=301,L]
Code: Select all
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://www.yoursite.com? [R=301,L]
I am sorry to open the thread again but I am having the same problem here.
I have friendly URL with www. and SEO enabled and when I change language it does nothing. I am sure it is something to do with my .htaccess. Please have a look and help me!
I have friendly URL with www. and SEO enabled and when I change language it does nothing. I am sure it is something to do with my .htaccess. Please have a look and help me!
Code: Select all
# 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 /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
# Rewrite common home to straight
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://www.mysite.com? [R=301,L]
http://www.pcplace.gr
Opencart with X3D HTML5 WebGl 3D objects
Who is online
Users browsing this forum: No registered users and 50 guests