Skip to main content

Posts

Showing posts from October, 2016

Enable SEO URL in Opencart

How to enable SEO URL in opencart 1.To use URL Alias you need to be running apache with mod_rewrite enabled.     sudo a2enmod rewrite    sudo service apache2 restart 2. In your opencart directory rename htaccess.txt to .htaccess. contain of .htaccess file Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">  Require all denied </FilesMatch> # SEO URL Settings RewriteEngine On RewriteBase /shop/ RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L] RewriteRule ^system/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]