Ad

Opencart Seo Friendly Url Only Works For Some Pages

- 1 answer

I'm working on my first project with opencart. I activated seo friendly urls in setting. Some pages such as about-us are fine. but seo friendly urls don't work for checkout, cart, register,... pages. For example http://onelight.ir/about-us is ok, but http://onelight.ir/register shows an 404 page and I must use the long url. I checked my database. There's no record for register on oc_url_alias table but there's a row for about-us keyword, with value information_id=4 for query. I checked catalog/controller/common path. There's no seo_url.php file there if that helps. my opencart version: 2.3.0.2

Thanks a lot for your time, and sorry for my poor english.

Ad

Answer

After struggling a lot this is how it works: I used this answer and this link. BUT seo_url.php file is in catalog/controller/startup directory.

Ad
source: stackoverflow.com
Ad