Jump to content

fichier .htaccess chez 1 and 1 pour maj version 1.2.5 vers la 1.4.2


Recommended Posts

Bonjour,

Je suis prêt à effectuer la maj de mon site qui est en version 1.2.5 vers la v 1.4.2
J'ai copié tous les fichiers et dossiers en local vers une version vierge.
Etant chez 1and1, je voudrais que quelqu'un regarde mon .htaccess et me dise s'il est correct
lui ayant apporté les mofifs nécessaires je pense, merci pour vos infos

AddType x-mapp-php5 .php



# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^api/?(.*)$ webservice/dispatcher.php?url=$1 [QSA,L]
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ img/p/$1-$2$3.jpg [L]
RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ img/p/$1-$2.jpg [L]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ img/c/$1$2.jpg [L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html product.php?id_product=$1 [QSA,L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* category.php?id_category=$1 [QSA,L]
RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html product.php?id_product=$1 [QSA,L]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) supplier.php?id_supplier=$1 [QSA,L]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) manufacturer.php?id_manufacturer=$1 [QSA,L]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) cms.php?id_cms=$1 [QSA,L]
RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) cms.php?id_cms_category=$1 [QSA,L]
RewriteRule ^([a-z]{2})/[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html product.php?id_product=$2&isolang;=$1 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html product.php?id_product=$2&isolang;=$1 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]* category.php?id_category=$2&isolang;=$1 [QSA,L]
RewriteRule ^([a-z]{2})/content/([0-9]+)\-[a-zA-Z0-9-]* cms.php?isolang=$1&id;_cms=$2 [QSA,L]
RewriteRule ^([a-z]{2})/content/category/([0-9]+)\-[a-zA-Z0-9-]* cms.php?isolang=$1&id;_cms_category=$2 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)__[a-zA-Z0-9-]* supplier.php?isolang=$1&id;_supplier=$2 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)_[a-zA-Z0-9-]* manufacturer.php?isolang=$1&id;_manufacturer=$2 [QSA,L]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html product.php?id_product=$3&isolang;=$1 [QSA,L]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html product.php?id_product=$2&isolang;=$1 [QSA,L]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*) category.php?id_category=$2&isolang;=$1 [QSA,L]
RewriteRule ^en/address$ /prestashop/address.php?isolang=en [QSA,L]
RewriteRule ^en/addresses$ addresses.php?isolang=en [QSA,L]
RewriteRule ^en/authentication$ authentication.php?isolang=en [QSA,L]
RewriteRule ^en/meilleures-ventes$ best-sales.php?isolang=en [QSA,L]
RewriteRule ^en/cart$ cart.php?isolang=en [QSA,L]
RewriteRule ^en/contacts$ contact-form.php?isolang=en [QSA,L]
RewriteRule ^en/discount$ discount.php?isolang=en [QSA,L]
RewriteRule ^en/guest-tracking$ guest-tracking.php?isolang=en [QSA,L]
RewriteRule ^en/order-history$ history.php?isolang=en [QSA,L]
RewriteRule ^en/identity$ identity.php?isolang=en [QSA,L]
RewriteRule ^en/my-account$ my-account.php?isolang=en [QSA,L]
RewriteRule ^en/order$ order.php?isolang=en [QSA,L]
RewriteRule ^en/order-follow$ order-follow.php?isolang=en [QSA,L]
RewriteRule ^en/quick-order$ order-opc.php?isolang=en [QSA,L]
RewriteRule ^en/order-slip$ order-slip.php?isolang=en [QSA,L]
RewriteRule ^en/search$ search.php?isolang=en [QSA,L]
RewriteRule ^en/plan-du-site$ sitemap.php?isolang=en [QSA,L]
RewriteRule ^en/stores$ stores.php?isolang=en [QSA,L]
RewriteRule ^en/([^?&]*) $1?isolang=en [QSA,L]
RewriteRule ^fr/adresse$ address.php?isolang=fr [QSA,L]
RewriteRule ^fr/adresses$ addresses.php?isolang=fr [QSA,L]
RewriteRule ^fr/authentification$ authentication.php?isolang=fr [QSA,L]
RewriteRule ^fr/meilleures-ventes$ best-sales.php?isolang=fr [QSA,L]
RewriteRule ^fr/panier$ cart.php?isolang=fr [QSA,L]
RewriteRule ^fr/contact$ contact-form.php?isolang=fr [QSA,L]
RewriteRule ^fr/bons-de-reduction$ discount.php?isolang=fr [QSA,L]
RewriteRule ^fr/guest-tracking$ guest-tracking.php?isolang=fr [QSA,L]
RewriteRule ^fr/historique-des-commandes$ history.php?isolang=fr [QSA,L]
RewriteRule ^fr/identite$ identity.php?isolang=fr [QSA,L]
RewriteRule ^fr/mon-compte$ my-account.php?isolang=fr [QSA,L]
RewriteRule ^fr/commande$ order.php?isolang=fr [QSA,L]
RewriteRule ^fr/details-de-la-commande$ order-follow.php?isolang=fr [QSA,L]
RewriteRule ^fr/quick-order$ order-opc.php?isolang=fr [QSA,L]
RewriteRule ^fr/avoirs$ order-slip.php?isolang=fr [QSA,L]
RewriteRule ^fr/recherche$ search.php?isolang=fr [QSA,L]
RewriteRule ^fr/plan-du-site$ sitemap.php?isolang=fr [QSA,L]
RewriteRule ^fr/magasins$ stores.php?isolang=fr [QSA,L]
RewriteRule ^fr/([^?&]*) $1?isolang=fr [QSA,L]


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


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"


FileETag INode MTime Size

AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...