Post by coolguy » Sun Dec 04, 2011 9:44 pm

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.

New member

Posts

Joined
Fri Nov 25, 2011 8:46 pm

Post by coolguy » Sun Dec 04, 2011 10:08 pm

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]

New member

Posts

Joined
Fri Nov 25, 2011 8:46 pm

Post by Cigs » Wed Dec 07, 2011 8:46 am

Can you please paste the whole .htaccess file here?

New member

Posts

Joined
Thu Nov 24, 2011 5:23 am

Post by coolguy » Mon Dec 19, 2011 12:09 am

i just put it in the end of all code in hta

New member

Posts

Joined
Fri Nov 25, 2011 8:46 pm

Post by jim_vam » Wed Apr 04, 2012 12:42 am

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!

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


User avatar
New member

Posts

Joined
Wed Dec 07, 2011 6:40 am
Who is online

Users browsing this forum: No registered users and 50 guests