Having SEO friendly urls is vital for google page rank.
Surprisingly it wasn’t the most straight forward process, so I created a howto for people using opencart.
Start by renaming the .htaccess file located in the Opencart root directory, its already setup and ready to go.
1 |
mv /var/www/opecart/.htaccess.txt /var/www/opecart/.htaccess |
Then you need to enable in apache2.
1 |
vim /etc/apache2/sites-available/000-default.conf |
and ensure the following is inserted. under your <VirtualHost *:80> section.
1 2 3 4 5 |
<Directory /var/www/store/> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> |