I was looking now so many hours, and i found no solution for my problem.
The SEO URL work only for the first level.
f.e.: example.com/nice-product works perfekt
example.com/category/nice-product route to the default store
example.com/category - work perfect
example.com/category/subcategory - route to default
I use a Litespeed Enterprice Server and i am not sure, after all my changes what is the right setting for all that.
I think its something wrong in the Rewrite options from Litespeed - but I dont really know.
Have someone a similar problem or better a soulution?
I use 3 different domains, all ending with / in the settings.
The default store use www - the other 2 domains route from www to non-www. But that works all fine.
Thats my last rewrite rules...
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://example.com/{REQUEST_URI} [R=301,L]
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /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]
Any ideas?
Found solution...
And surprize.. was very easy.
I used before the rewrite option from the virtualhosts from the litespeedserver config. I deleted all for each domain and use only a .htaccess now.
Now it works fine with 3 different domains.
And surprize.. was very easy.
I used before the rewrite option from the virtualhosts from the litespeedserver config. I deleted all for each domain and use only a .htaccess now.
Now it works fine with 3 different domains.
Excellent! So please add [SOLVED] to the start of the post title.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
Hello man , are y around ?decomuc wrote: ↑Sun Nov 28, 2021 6:23 pmI was looking now so many hours, and i found no solution for my problem.
The SEO URL work only for the first level.
f.e.: example.com/nice-product works perfekt
example.com/category/nice-product route to the default store
example.com/category - work perfect
example.com/category/subcategory - route to default
I use a Litespeed Enterprice Server and i am not sure, after all my changes what is the right setting for all that.
I think its something wrong in the Rewrite options from Litespeed - but I dont really know.
Have someone a similar problem or better a soulution?
I use 3 different domains, all ending with / in the settings.
The default store use www - the other 2 domains route from www to non-www. But that works all fine.
Thats my last rewrite rules...
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://example.com/{REQUEST_URI} [R=301,L]
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /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]
Any ideas?
Can y pls can you give me your .htaccess file - i use 1 domain with non www -ols. I cant enable seo ,i cant get rid from 404 too many redirects error if i enable it with few pages .
Ty in advance . I hope y r still around