OC4 SEO URL issue
Posted: Sat Nov 12, 2022 6:45 pm
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]
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]