• Content
  • Comments (0)
  • Related articles

Use SEO URL’s – OpenCart is not working ? … even if .htaccess exists and is correct Friday, 8 March 2013

If  [ Use SEO URL’s ] option on  OpenCart > System > Settings > Your Store* > Server (tab)  is not working is because one of the following requirements is failing:

  1. Apache module mod-rewrite must be installed
  2. You need to rename the htaccess.txt to .htaccess
  3. Or your OpenCart installation does not run on the main web folder

Usually if the A and B are done  but you still get [Error 404 – Page Not Found] the C is the problem. The solution consist in editing .htaccess, by default looks like:

# 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 /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /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]

All you need to do is to replace/complete the line:

RewriteBase /

With your own OpenCart installation path:

RewriteBase /first_folder/second_folder/third_folder/opencart_root_folder/



  • assuming that the OpenCart is at: http://www.domain.com/first_folder/second_folder/third_folder/opencart/index.php
  • then the .htaccess line should be: RewriteBase /first_folder/second_folder/third_folder/opencart/


Post a Comment

Your email is never published nor shared. Required fields are marked *