Page 1 of 1
OpenCart 4.1 remove from url "?route=product/product&language="
Posted: Thu Mar 20, 2025 6:34 pm
by velko
I would like to use seo url as I have enabled seo from the admin and changed .htaccess.txt to .htaccess in opencart version 4.1.
Finally the result is the following
/syry-balkanskeho-typu/balkansky-syr-z-koziho-mleka-merone-200-g?route=product/product&language=cs-cz
and I would like it to be /syry-balkanskeho-typu/balkansky-syr-z-koziho-mleka-merone-200-g without ?route=product/product&language=cs-cz
How can I achieve this ?
Re: OpenCart 4.1 remove from url "?route=product/product&language="
Posted: Thu Mar 20, 2025 8:35 pm
by paulfeakins
velko wrote: ↑Thu Mar 20, 2025 6:34 pm
I would like to use seo url as I have enabled seo from the admin and changed .htaccess.txt to .htaccess in opencart version 4.1.
Well, there is no such thing as version 4.1 because OpenCart versions contain 4 numbers. Presumably you mean 4.1.0.0.
Whatever you mean though, you should not be using any version of OpenCart 4 at this point, you should use 3.0.4.0.
Re: OpenCart 4.1 remove from url "?route=product/product&language="
Posted: Thu Mar 20, 2025 9:03 pm
by velko
I have invested a lot of time in writing several modules, database migration, etc. for version 4.1.0.0 and I don't want to go back to version 3, when will a new version 4.1.0.1 be released that I can use?
Re: OpenCart 4.1 remove from url "?route=product/product&language="
Posted: Thu Mar 20, 2025 10:18 pm
by JNeuhoff
In that case you could test it with the current
master branch, to see whether this issue still exists or not.
Re: OpenCart 4.1 remove from url "?route=product/product&language="
Posted: Fri Mar 21, 2025 1:14 am
by JNeuhoff
Just tested it with en-gb and de-de language packs for the master branch, and the SEO urls are fine now for different languages.
Re: OpenCart 4.1 remove from url "?route=product/product&language="
Posted: Fri Mar 21, 2025 4:19 am
by velko
I changed the language, but the problem is still there.
Does anyone know when a new, fixed version will be released?
Re: OpenCart 4.1 remove from url "?route=product/product&language="
Posted: Fri Mar 21, 2025 7:19 pm
by paulfeakins
velko wrote: ↑Fri Mar 21, 2025 4:19 am
I changed the language, but the problem is still there.
Does anyone know when a new, fixed version will be released?
Version 4.1.0.2 was released today. Whether it fixes these issues or not, I do not know.
Re: OpenCart 4.1 remove from url "?route=product/product&language="
Posted: Fri Mar 21, 2025 7:42 pm
by JNeuhoff
OC 4.1.0.2 still appears to have some issues with SEO URLs when installing another language, though not the one reported by the OP on this forum thread here.
Re: OpenCart 4.1 remove from url "?route=product/product&language="
Posted: Fri Mar 21, 2025 7:46 pm
by velko
How can i upgrade from version 4.1.0.0 to 4.1.0.2 ?
Re: OpenCart 4.1 remove from url "?route=product/product&language="
Posted: Fri Mar 21, 2025 9:10 pm
by JNeuhoff
velko wrote: ↑Fri Mar 21, 2025 7:46 pm
How can i upgrade from version 4.1.0.0 to 4.1.0.2 ?
Best to do a fresh install because the upgrade has
some issues. There were more than minor changes between 4.1.0.0 and 4.1.0.2.
Re: OpenCart 4.1 remove from url "?route=product/product&language="
Posted: Fri Mar 28, 2025 3:58 pm
by webocreation.com
Looking at the issue, I think either there is no entry for the product route at SEO URL or the htaccess content is incorrect.
Go to admin >> Design >> SEO URL and see if this product entry exists; if not, add it.

Similarly, for each language, you need this kind of entry:

See the sort order play role here.
If the above does not fix, backup your htaccess and use this htaccess content
https://raw.githubusercontent.com/openc ... access.txt
Opencart SEO URLs
If both do not work, then you may need to look deeper
