- Get link
- X
- Other Apps
Nginx SEO URLs not working
1. Open youe VPS Control panel (aapanel)
2. Go to this Directory
www/server/panel/vhost/nginx
open your opencart website domain conf file
# SEO URL Settings by KarimZI
# Nginx configuration of OC htaccess
location = /sitemap.xml {
rewrite ^(.*)$ /index.php?route=feed/google_sitemap break;
}
location = /googlebase.xml {
rewrite ^(.*)$ /index.php?route=feed/google_base break;
}
location / {
# This try_files directive is used to enable SEO-friendly URLs for OpenCart
try_files $uri $uri/ @opencart;
}
location @opencart {
rewrite ^/(.+)$ /index.php?_route_=$1 last;
}
# End SEO settings
KarimZI
SAVE NOW
Restart NGINX server and check.
Comments
Post a Comment