Hello,
I have a problem with categories' SEO URL. The problem is that they do not show correctly. Opencart is displaying product SEO URL rightly but not category SEO URL. Ex:
https://www.domain.com/index.php?_route ... ices-black
So: the category SEO URL in database is "hard-phone-cases" but is displays on web browser as "index.php?_route_=hard-phone-cases". However, the product URL displays correctly: /blade-series-case-iphone-devices-black. Why is opencart addint "index.php?_route_=hard-phone-cases" to the SEO URL?
Any idea what is the problem?
In case you need it: htaccess file
RewriteEngine On
#anhadidos por Smart-Ebiz
#que siempre sea https
RewriteCond %{HTTP_HOST} ^cellphoneshielder.com$
RewriteRule (.*) https://www.cellphoneshielder.com/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#Homepage uRL SEO Friendly - añadido SBO
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://%{HTTP_HOST}? [R=301,L]
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
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|js|css)
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Do you have an SEO extensions installed?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Hi
I have the same problem on oc 3.0
If i click my categories under the mega menu i get the correct seo url however if i click on the same category from the product page i get an unfriendly url.
For instance https://braga.co.za/oem-satnav has several child pages,
https://braga.co.za/oem-satnav/a-c-gps
https://braga.co.za/oem-satnav/a-c-gps/acura-navigation
If i click acura-navigation on the mega menu the correct url is displayed
if i click the same category on the product page screen, i get an unfriendly url
here's a snippet snippet of my .htaccess
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
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|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Worthy to mention that product pages seem to be working fine except for category pages only
Seo changes i have made accordingly
Rename .htaccess.txt to .htaccess
Enable Seo rewrite under system>settings>server
Assigned seo url on the category page
I have the same problem on oc 3.0
If i click my categories under the mega menu i get the correct seo url however if i click on the same category from the product page i get an unfriendly url.
For instance https://braga.co.za/oem-satnav has several child pages,
https://braga.co.za/oem-satnav/a-c-gps
https://braga.co.za/oem-satnav/a-c-gps/acura-navigation
If i click acura-navigation on the mega menu the correct url is displayed
if i click the same category on the product page screen, i get an unfriendly url
here's a snippet snippet of my .htaccess
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
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|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Worthy to mention that product pages seem to be working fine except for category pages only
Seo changes i have made accordingly
Rename .htaccess.txt to .htaccess
Enable Seo rewrite under system>settings>server
Assigned seo url on the category page
Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za
Who is online
Users browsing this forum: nonnedelectari and 140 guests