prcaen/prestashop-module-lookbook/master/.htaccess - Htaccess File

prcaen/prestashop-module-lookbook/master/.htaccess

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE
# http://www.prestashop.com - http://www.prestashop.com/forums

Options FollowSymLinks
<IfModule mod_rewrite.c>
# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^api/?(.*)$ /prestashop-lookbook/webservice/dispatcher.php?url=$1 [QSA,L]
RewriteRule ^([a-z0-9]+)-([a-z0-9]+)(-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/p/$1-$2$3.jpg [L]
RewriteRule ^([0-9]+)-([0-9]+)/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/p/$1-$2.jpg [L]
RewriteRule ^([0-9])(-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/p/$1/$1$2.jpg [L]
RewriteRule ^([0-9])([0-9])(-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/p/$1/$2/$1$2$3.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/p/$1/$2/$3/$1$2$3$4.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteRule ^c/([0-9]+)(-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/c/$1$2.jpg [L]
RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+.jpg$ /prestashop-lookbook/img/c/$1.jpg [L]
RewriteRule ^([0-9]+)(-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*.jpg$ /prestashop-lookbook/img/c/$1$2.jpg [L]
RewriteRule ^([0-9]+)-[a-zA-Z0-9-]*.html /prestashop-lookbook/product.php?id_product=$1 [QSA,L]
RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)-[a-zA-Z0-9-]*.html /prestashop-lookbook/product.php?id_product=$1 [QSA,L]
RewriteRule ^([0-9]+)-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /prestashop-lookbook/category.php?id_category=$1&noredirect=1 [QSA,L]
RewriteRule ^([0-9]+)-[a-zA-Z0-9-]* /prestashop-lookbook/category.php?id_category=$1 [QSA,L]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /prestashop-lookbook/supplier.php?id_supplier=$1 [QSA,L]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /prestashop-lookbook/manufacturer.php?id_manufacturer=$1 [QSA,L]
RewriteRule ^content/([0-9]+)-([a-zA-Z0-9-]*) /prestashop-lookbook/cms.php?id_cms=$1 [QSA,L]
RewriteRule ^content/category/([0-9]+)-([a-zA-Z0-9-]*) /prestashop-lookbook/cms.php?id_cms_category=$1 [QSA,L]
RewriteRule ^page-non-trouvee$ /prestashop-lookbook/404.php [QSA,L]
RewriteRule ^adresse$ /prestashop-lookbook/address.php [QSA,L]
RewriteRule ^adresses$ /prestashop-lookbook/addresses.php [QSA,L]
RewriteRule ^authentification$ /prestashop-lookbook/authentication.php [QSA,L]
RewriteRule ^meilleures-ventes$ /prestashop-lookbook/best-sales.php [QSA,L]
RewriteRule ^panier$ /prestashop-lookbook/cart.php [QSA,L]
RewriteRule ^contactez-nous$ /prestashop-lookbook/contact-form.php [QSA,L]
RewriteRule ^bons-de-reduction$ /prestashop-lookbook/discount.php [QSA,L]
RewriteRule ^suivi-commande-invite$ /prestashop-lookbook/guest-tracking.php [QSA,L]
RewriteRule ^historique-des-commandes$ /prestashop-lookbook/history.php [QSA,L]
RewriteRule ^identite$ /prestashop-lookbook/identity.php [QSA,L]
RewriteRule ^fabricants$ /prestashop-lookbook/manufacturer.php [QSA,L]
RewriteRule ^mon-compte$ /prestashop-lookbook/my-account.php [QSA,L]
RewriteRule ^nouveaux-produits$ /prestashop-lookbook/new-products.php [QSA,L]
RewriteRule ^commande$ /prestashop-lookbook/order.php [QSA,L]
RewriteRule ^details-de-la-commande$ /prestashop-lookbook/order-follow.php [QSA,L]
RewriteRule ^commande-rapide$ /prestashop-lookbook/order-opc.php [QSA,L]
RewriteRule ^avoirs$ /prestashop-lookbook/order-slip.php [QSA,L]
RewriteRule ^mot-de-passe-oublie$ /prestashop-lookbook/password.php [QSA,L]
RewriteRule ^promotions$ /prestashop-lookbook/prices-drop.php [QSA,L]
RewriteRule ^recherche$ /prestashop-lookbook/search.php [QSA,L]
RewriteRule ^plan-du-site$ /prestashop-lookbook/sitemap.php [QSA,L]
RewriteRule ^magasins$ /prestashop-lookbook/stores.php [QSA,L]
RewriteRule ^fournisseurs$ /prestashop-lookbook/supplier.php [QSA,L]
</IfModule>

# Catch 404 errors
ErrorDocument 404 /prestashop-lookbook/404.php

<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/gif "access plus 1 month"
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType text/css "access plus 1 week"
  ExpiresByType text/javascript "access plus 1 week"
  ExpiresByType application/javascript "access plus 1 week"
  ExpiresByType application/x-javascript "access plus 1 week"
  ExpiresByType image/x-icon "access plus 1 year"
</IfModule>

FileETag INode MTime Size
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE

Comments

Apache