Post by amitgarg » 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]

Thanks,
Amit Garg


User avatar
New member

Posts

Joined
Sun Jan 09, 2011 3:51 am
Location - New Delhi, India

Post by straightlight » Tue Nov 15, 2022 2:48 am

OC version; 4 digits.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by IP_CAM » Tue Nov 15, 2022 3:26 am

RewriteBase /pd/upload
should be:
RewriteBase /pd/upload/

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: Bing [Bot] and 83 guests