romain21 Posted January 22, 2013 Share Posted January 22, 2013 Bonjour à tous, j'ai un problème très embêtant avec le panier de ma boutique. Mon panier ce vide et le nom de mon client se retire uniquement sur la page d'accueil et revient quand on clique sur une autre page. Ceci est arrivé depuis que j'ai ajouté le fichier ".htaccess" ci-dessous afin d'améliorer les performances de ma boutique. Ma boutique est beaucoup plus rapide depuis cet ajout, mais maintenant quelques fonctionnalités réagissent différemment. Pouvez-vous m'aider à optimiser ce fichier ou me donner une piste pour résoudre mon problème. Ma boutique est en 1.4.9 et mon hébergeur est ovh. J'ai fait de nombreuse recherche sur ce forum mais rien à ce sujet. Merci d'avance pour votre aide. SetEnv REGISTER_GLOBALS 0 SetEnv PHP_VER 5 ServerSignature Off Options All -Indexes Options +FollowSymLinks #SetEnv SERVER_ADMIN monsite.com SetEnv TZ Europe/Paris #allow_url_include 0 # AddDefaultCharset UTF-8 AddLanguage fr-FR .html .htm .css .js <Files .htaccess> order allow,deny deny from all </Files> # ACTIVATION DE LA COMPRESSION DES PAGES <IfModule mod_deflate.c> SetOutputFilter DEFLATE AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php # POUR LES NAVIGATEURS INCOMPATIBLES BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html #PAS DE COMPRESSION POUR LES FORMATS NE LE NECESSITANT PAS SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip </IfModule> # SUPPRESSION DES ETAGS Header unset ETag FileETag none # SECURISATION DES ACCES AUX FICHIERS <files .htaccess> order allow,deny deny from all </files> <FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|themes|modules|exe|asa)$"> deny from all </FilesMatch> # DÉSACTIVATION DE LA SIGNATURE DU SERVEUR ServerSignature Off # PRÉVENTION DES ATTAQUES DDOS LimitRequestBody 10240000 # compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript # GESTION DES DATES D'EXPIRATION POUR FAVORISER LE CACHE NAVIGATEUR <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 7200 seconds" ExpiresByType image/jpg "access plus 2592000 seconds" ExpiresByType image/jpeg "access plus 2592000 seconds" ExpiresByType image/png "access plus 2592000 seconds" ExpiresByType image/gif "access plus 2592000 seconds" AddType image/x-icon .ico ExpiresByType image/ico "access plus 2592000 seconds" ExpiresByType image/icon "access plus 2592000 seconds" ExpiresByType image/x-icon "access plus 2592000 seconds" ExpiresByType text/css "access plus 2592000 seconds" ExpiresByType text/javascript "access plus 2592000 seconds" ExpiresByType text/html "access plus 7200 seconds" ExpiresByType application/xhtml+xml "access plus 7200 seconds" ExpiresByType application/javascript A259200 ExpiresByType application/x-javascript "access plus 2592000 seconds" ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds" </IfModule> # MISE EN CACHE DES FICHIERS NON DYNAMIQUES : IMAGES, CSS, JAVASCRIPT... <IfModule mod_headers.c> <FilesMatch "\\.(ico|jpe?g|JPE?G|png|gif|swf|css|gz)$"> Header set Cache-Control "max-age=2592000, public" </FilesMatch> <FilesMatch "\\.(js)$"> Header set Cache-Control "max-age=2592000, private" </FilesMatch> <filesMatch "\\.(html|htm)$"> Header set Cache-Control "max-age=7200, public" </filesMatch> # DESACTIVATION DU CACHE POUR LES FICHIERS DYNAMIQUES <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$"> Header unset Cache-Control </FilesMatch> </IfModule> <IfModule mod_rewrite.c> # URL rewriting module activation RewriteEngine on RewriteCond %{HTTP_HOST} ^monsite.com$ RewriteRule ^(.*) http://www.monsite.com/$1 [QSA,L,R=301] # URL rewriting rules 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/p/$1/$1$2.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /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$ /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$ /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$ /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$ /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$ /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$ /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$ /img/c/$1$2.jpg [L] RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /img/c/$1.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 ^[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-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$1&noredirect=1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$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 ^page-non-trouvee$ /404.php [QSA,L] RewriteRule ^adresse$ /address.php [QSA,L] RewriteRule ^adresses$ /addresses.php [QSA,L] RewriteRule ^authentification$ /authentication.php [QSA,L] RewriteRule ^meilleures-ventes$ /best-sales.php [QSA,L] RewriteRule ^panier$ /cart.php [QSA,L] RewriteRule ^contactez-nous$ /contact-form.php [QSA,L] RewriteRule ^bons-de-reduction$ /discount.php [QSA,L] RewriteRule ^suivi-commande-invite$ /guest-tracking.php [QSA,L] RewriteRule ^historique-des-commandes$ /history.php [QSA,L] RewriteRule ^identite$ /identity.php [QSA,L] RewriteRule ^fabricant$ /manufacturer.php [QSA,L] RewriteRule ^mon-compte$ /my-account.php [QSA,L] RewriteRule ^nouveaux-produits$ /new-products.php [QSA,L] RewriteRule ^commande$ /order.php [QSA,L] RewriteRule ^details-de-la-commande$ /order-follow.php [QSA,L] RewriteRule ^commande-rapide$ /order-opc.php [QSA,L] RewriteRule ^avoirs$ /order-slip.php [QSA,L] RewriteRule ^mot-de-passe-oublie$ /password.php [QSA,L] RewriteRule ^promotions$ /prices-drop.php [QSA,L] RewriteRule ^recherche$ /search.php [QSA,L] RewriteRule ^plan-du-site$ /sitemap.php [QSA,L] RewriteRule ^magasins$ /stores.php [QSA,L] RewriteRule ^fournisseurs$ /supplier.php [QSA,L] # Catch 404 errors ErrorDocument 404 /404.php Link to comment Share on other sites More sharing options...
romain21 Posted January 23, 2013 Author Share Posted January 23, 2013 Pouvez vous m'aider SVP Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now