OpenCart allows the use of search engine optimized URLs for product, category, manufacturer and information pages. SEO keywords are defined per product, category, manufacturer and information page, stored in a database table (url_alias), looked up at each page request, and translated into an internal URL. Opencart store returns with ‘Error 404 – Not Found’ for the inner pages. This happens due to the incorrect settings for SEO.
System> Settings > your store > Server > Use SEO URLs
. Set them to ‘YES’ and save changes..htaccess.txt
’ file in the root of the Opencart installation. Rename the file to be ‘.htaccess
’. Delete .txt extension.Catalog > Products > Data > Seo Keyword
. Take note of the following-
http://www.yourdomain.com/opencart/
, you’ll need to modify the .htaccess
file located in your OpenCart folder.
.htaccess
file, and look for the following code section, starting from line 18:# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
RewriteBase /
to
RewriteBase /opencart/
# SEO URL Settings
RewriteEngine On
RewriteBase /opencart/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
If you face any problems or need our professional services, please email us at [email protected].
Never miss the latest offers, voucher codes and useful articles delivered weekly in your inbox.