# ~~start~~ Do not remove this comment, thirty bees will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automatically generated by thirty bees e-commerce open-source solution # http://www.thirtybees.com - http://www.thirtybees.com/forums SetEnv HTTP_MOD_REWRITE On RewriteEngine on # Domain: [[domhost]] RewriteRule . - [E=REWRITEBASE:[[relativeurl]]/] # Webservice API RewriteRule ^api$ api/ [L] RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType font/woff .woff AddType font/woff2 .woff2 Header set Access-Control-Allow-Origin "*" #If rewrite mod isn't enabled ErrorDocument 404 [[relativeurl]]/index.php?controller=404 # ~~end~~ Do not remove this comment, thirty bees will keep automatically the code outside this comment when .htaccess will be generated again