Page 1 of 1

OC4 SEO URL issue

Posted: Sat Nov 12, 2022 6:45 pm
by amitgarg
OC4 SEO URL is having query string which contains the controller and the function name even though I have enabled it from the settings.

Current URL: http://localhost/pd/upload/delhi/new-de ... uage=en-gb
Excepted URL : http://localhost/pd/upload/delhi/new-delhi

htaccess
## 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 /pd/upload
## Rewrite Rules
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|webp|js|css|svg)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

Re: OC4 SEO URL issue

Posted: Tue Nov 15, 2022 2:48 am
by straightlight
OC version; 4 digits.

Re: OC4 SEO URL issue

Posted: Tue Nov 15, 2022 3:26 am
by IP_CAM
RewriteBase /pd/upload
should be:
RewriteBase /pd/upload/