You are on page 1of 1

# 1. To use URL Aliases you need to be running apache with mod_rewrite enabled.

# 2. In your abantecart main directory rename file htaccess.txt to .htaccess


# 3. Edit file .htaccess. If abantecart is installed in yourdomain/ subfolder ch
ange configuration line RewriteBase / to RewriteBase /subfolder/.
# Example: yourdomain.com/store use RewriteBase /store/
# Important to have / at the end of the line.
# 4. if htaccess and mode_rewrite still does not works - check and set apache2 w
ebserver directive AllowOverride All for your virtual hosts
# For any support issues please visit: http://forum.abantecart.com
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "\.tpl">
Order deny,allow
Deny from all
</FilesMatch>
# Rewrite section for retina high-res images with @2x in the end of filename bas
e on cookie HTTP_IS_RETINA
# To emulate Retina mode on your NON-Retina display, add HTTP_IS_RETINA cookie i
n your browser
RewriteEngine on
RewriteCond %{HTTP_COOKIE} HTTP_IS_RETINA [NC]
RewriteCond %{REQUEST_FILENAME} !@2x
RewriteRule ^(.*)\.(gif|jpg|png)$ $1@2x.$2
# if @2x isn't available fulfill the original request
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)@2x\.(gif|jpg|png)$ $1.$2
# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]

You might also like