##### START CubeCart .htaccess #####
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
ExpiresByType text/html "access 0 seconds"
ExpiresDefault "access 7 days"
<FilesMatch "\.(htaccess)$">
### Apache directory listing rules ###
DirectoryIndex index.php index.htm index.html
Header always append X-Frame-Options SAMEORIGIN
### Rewrite rules for SEO functionality ###
RewriteBase [[relativeurl]]/
##### START v4 SEO URL BACKWARD COMPATIBILITY #####
RewriteCond %{QUERY_STRING} (.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?(.*)$ index.php?_a=category&cat_id=$1&%1 [NC]
RewriteCond %{QUERY_STRING} (.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC]
RewriteCond %{QUERY_STRING} (.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=document&doc_id=$1&%1 [NC]
RewriteCond %{QUERY_STRING} (.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC]
RewriteCond %{QUERY_STRING} (.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$ index.php?_a=saleitems&%1 [NC,L]
##### END v4 SEO URL BACKWARD COMPATIBILITY #####
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=[[relativeurl]]/favicon.ico
RewriteRule ^(.*)?$ index.php?seo_path=$1 [L,QSA]
### Default store 404 page ###
ErrorDocument 404 [[relativeurl]]/index.php
## Override default 404 error document for missing page resources ##
<FilesMatch "\.(gif|jpe?g|png|ico|css|js|svg|webp)$">
ErrorDocument 404 "<html></html>
##### END CubeCart .htaccess #####