Hello tous le monde
Ma demande peut paraitre particulière mais je flanche vraiment après plusieurs jours de recherche ..
Pour vous donner plus de détails:
Mon site à été créer sans SSL en http depuis ce temps nous avons transférer le site vers une version sécurisée https
Malheureusement depuis nous sommes face à quelques problèmes quand nous modifions un fichier .css, .tpl la modification s'effectue sans problème, mais à l'inverse quand on modifie une image, un .php les modifications ce font sur la version http mais pas la version https.
Dans le backoffice nous avons bien activé le SSL sur tous le site, j'ai testé la suppression des caches du site, du thème et de mon navigateur, du cache CDN et la régénération du certificat SSL chez OVH.
Exemple :
Nouvelle image sur le http
http://www.webzoom-phone.fr/img/devenir-designer.jpg
Ancienne image sur le https
https://www.webzoom-…ir-designer.jpg
Avez vous une idée?
Je vous remercie par avance
A mon humble avis le https n'a rien à voir avec ton problème.
Par contre il faudrait connaître les contenus de tes fichiers :
* /.ovhconfig
* /www/.htaccess
Je me demande si tes fichiers .css sont bien chargés dans chacun des cas.
Merci beaucoup pour ta réponses !<br />D'accord je pensais qu'il y avait un lien du faite que quand on vas sur le http ça fonctionne à l'inverse de l'https.<br />Pour le fichier ovhconfig:<br /><br />> app.engine=php<br />> app.engine.version=7.0<br />> http.firewall=none<br />> environment=production<br />> container.image=stable<br /><br />pour le htaccess : <br /><br /> RewriteEngine on<br /> RewriteRule ^en/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^de/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^nl/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^it/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^es/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^pt/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^/(.*)$ /fr/$1 [R=301,NC,L]<br /><br /> # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again<br /> # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution<br /> # http://www.prestashop.com<br /><br /> <br /> <br /> SetEnv HTTP_MOD_REWRITE On<br /> <br /><br /> RewriteEngine on<br /><br /><br /> #Domain: www.webzoom-phone.fr<br /> RewriteRule . - [E=REWRITEBASE:/]<br /> RewriteRule ^api$ api/ [L]<br /><br /> RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]<br /><br /> # Images<br /> RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]<br /> RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]<br /> RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]<br /> RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]<br /> # AlphaImageLoader for IE and fancybox<br /> RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]<br /><br /> # Dispatcher<br /> RewriteCond %{REQUEST_FILENAME} -s [OR]<br /> RewriteCond %{REQUEST_FILENAME} -l [OR]<br /> RewriteCond %{REQUEST_FILENAME} -d<br /> RewriteRule ^.*$ - [NC,L]<br /> RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]<br /> <br /><br /> AddType application/vnd.ms-fontobject .eot<br /> AddType font/ttf .ttf<br /> AddType font/otf .otf<br /> AddType application/x-font-woff .woff<br /> <br /> <br /> Header add Access-Control-Allow-Origin "*"<br /> <br /> <br /><br /> <br /> ExpiresActive On<br /> ExpiresByType image/gif "access plus 1 month"<br /> ExpiresByType image/jpeg "access plus 1 month"<br /> ExpiresByType image/png "access plus 1 month"<br /> ExpiresByType text/css "access plus 1 week"<br /> ExpiresByType text/javascript "access plus 1 week"<br /> ExpiresByType application/javascript "access plus 1 week"<br /> ExpiresByType application/x-javascript "access plus 1 week"<br /> ExpiresByType image/x-icon "access plus 1 year"<br /> ExpiresByType image/svg+xml "access plus 1 year"<br /> ExpiresByType image/vnd.microsoft.icon "access plus 1 year"<br /> ExpiresByType application/font-woff "access plus 1 year"<br /> ExpiresByType application/x-font-woff "access plus 1 year"<br /> ExpiresByType application/vnd.ms-fontobject "access plus 1 year"<br /> ExpiresByType font/opentype "access plus 1 year"<br /> ExpiresByType font/ttf "access plus 1 year"<br /> ExpiresByType font/otf "access plus 1 year"<br /> ExpiresByType application/x-font-ttf "access plus 1 year"<br /> ExpiresByType application/x-font-otf "access plus 1 year"<br /> <br /><br /> <br /> Header unset Etag<br /> <br /> FileETag none<br /> <br /> <br /> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype<br /> <br /> <br /><br /> #If rewrite mod isn't enabled<br /> ErrorDocument 404 /index.php?controller=404<br /><br /> # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again<br /><br /> SetEnv REGISTER_GLOBALS 0<br /> SetEnv PHP_VER 5<br /> # URL rewriting module activation<br /> RewriteEngine on<br /> # URL rewriting rules<br /> RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]<br /> RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [L,E]<br /> RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]<br /> RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang=$1$5 [L,E]<br /> RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang=$1$4 [L,E]<br /> RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang=$1 [QSA,L,E]<br /> RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]<br /> RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]<br /> RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]<br /> RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]<br /> RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]<br /> RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]<br /> RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]<br /> # Catch 404 errors<br /> ErrorDocument 404 /404.php<br /><br /><br /><br /><br /><br /><br /><br /> #Prestaspeed addon start<br /> <br /> AddType text/css .css<br /> AddType application/x-javascript .js<br /> AddType text/x-component .htc<br /> AddType text/html .html .htm<br /> AddType text/richtext .rtf .rtx<br /> AddType image/svg+xml .svg .svgz<br /> AddType text/plain .txt<br /> AddType text/xsd .xsd<br /> AddType text/xsl .xsl<br /> AddType text/xml .xml<br /> AddType video/asf .asf .asx .wax .wmv .wmx<br /> AddType video/avi .avi<br /> AddType image/bmp .bmp<br /> AddType application/java .class<br /> AddType video/divx .divx<br /> AddType application/msword .doc .docx<br /> AddType application/vnd.ms-fontobject .eot<br /> AddType application/x-msdownload .exe<br /> AddType image/gif .gif<br /> AddType application/x-gzip .gz .gzip<br /> AddType image/x-icon .ico<br /> AddType image/jpeg .jpg .jpeg .jpe<br /> AddType application/vnd.ms-access .mdb<br /> AddType audio/midi .mid .midi<br /> AddType video/quicktime .mov .qt<br /> AddType audio/mpeg .mp3 .m4a<br /> AddType video/mp4 .mp4 .m4v<br /> AddType video/mpeg .mpeg .mpg .mpe<br /> AddType application/vnd.ms-project .mpp<br /> AddType application/x-font-otf .otf<br /> AddType application/vnd.oasis.opendocument.database .odb<br /> AddType application/vnd.oasis.opendocument.chart .odc<br /> AddType application/vnd.oasis.opendocument.formula .odf<br /> AddType application/vnd.oasis.opendocument.graphics .odg<br /> AddType application/vnd.oasis.opendocument.presentation .odp<br /> AddType application/vnd.oasis.opendocument.spreadsheet .ods<br /> AddType application/vnd.oasis.opendocument.text .odt<br /> AddType audio/ogg .ogg<br /> AddType application/pdf .pdf<br /> AddType image/png .png<br /> AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx<br /> AddType audio/x-realaudio .ra .ram<br /> AddType application/x-shockwave-flash .swf<br /> AddType application/x-tar .tar<br /> AddType image/tiff .tif .tiff<br /> AddType application/x-font-ttf .ttf .ttc<br /> AddType audio/wav .wav<br /> AddType audio/wma .wma<br /> AddType application/vnd.ms-write .wri<br /> AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw<br /> AddType application/zip .zip<br /> <br /><br /> <br /> # Default directive<br /><br /> ExpiresActive On<br /> ExpiresByType text/css A31536000<br /> ExpiresByType text/html "access plus 0 minutes"<br /> ExpiresByType application/x-javascript A31536000<br /> ExpiresByType text/x-component A31536000<br /> ExpiresByType text/richtext A3600<br /> ExpiresByType image/svg+xml A3600<br /> ExpiresByType text/plain A3600<br /> ExpiresByType text/xsd A3600<br /> ExpiresByType text/xsl A3600<br /> ExpiresByType video/asf A31536000<br /> ExpiresByType video/avi A31536000<br /> ExpiresByType image/bmp A31536000<br /> ExpiresByType application/java A31536000<br /> ExpiresByType video/divx A31536000<br /> ExpiresByType application/msword A31536000<br /> ExpiresByType application/vnd.ms-fontobject A31536000<br /> ExpiresByType application/x-msdownload A31536000<br /> ExpiresByType image/gif A31536000<br /> ExpiresByType image/jpg "access plus 1 month"<br /> ExpiresByType image/jpeg "access plus 1 month"<br /> ExpiresByType application/x-gzip A31536000<br /> ExpiresByType image/x-icon A31536000<br /> ExpiresByType application/vnd.ms-access A31536000<br /> ExpiresByType audio/midi A31536000<br /> ExpiresByType video/quicktime A31536000<br /> ExpiresByType audio/mpeg A31536000<br /> ExpiresByType video/mp4 A31536000<br /> ExpiresByType video/mpeg A31536000<br /> ExpiresByType application/vnd.ms-project A31536000<br /> ExpiresByType application/x-font-otf A31536000<br /> ExpiresByType application/vnd.oasis.opendocument.database A31536000<br /> ExpiresByType application/vnd.oasis.opendocument.chart A31536000<br /> ExpiresByType application/vnd.oasis.opendocument.formula A31536000<br /> ExpiresByType application/vnd.oasis.opendocument.graphics A31536000<br /> ExpiresByType application/vnd.oasis.opendocument.presentation A31536000<br /> ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000<br /> ExpiresByType application/vnd.oasis.opendocument.text A31536000<br /> ExpiresByType audio/ogg A31536000<br /> ExpiresByType application/pdf A31536000<br /> ExpiresByType image/png A31536000<br /> ExpiresByType application/vnd.ms-powerpoint A31536000<br /> ExpiresByType audio/x-realaudio A31536000<br /> ExpiresByType image/svg+xml A31536000<br /> ExpiresByType application/x-shockwave-flash A31536000<br /> ExpiresByType application/x-tar A31536000<br /> ExpiresByType image/tiff A31536000<br /> ExpiresByType application/x-font-ttf A31536000<br /> ExpiresByType audio/wav A31536000<br /> ExpiresByType audio/wma A31536000<br /> ExpiresByType application/vnd.ms-write A31536000<br /> ExpiresByType application/vnd.ms-excel A31536000<br /> ExpiresByType application/zip A31536000<br /> <br /> <br /><br /> Header unset ETag<br /> FileETag None<br /> <br /> <br /> #The following line is enough for .js and .css<br /> AddOutputFilter DEFLATE js css<br /><br /> #The following line also enables compression by file content type, for the following list of Content-Type:s<br /> AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml<br /><br /> #The following lines are to avoid bugs with some browsers<br /> BrowserMatch ^Mozilla/4 gzip-only-text/html<br /> BrowserMatch ^Mozilla/4\.0[678] no-gzip<br /> BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br /> <br /> BrowserMatch ^Mozilla/4 gzip-only-text/html<br /> BrowserMatch ^Mozilla/4\.0[678] no-gzip<br /> BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br /> BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html<br /> <br /> <br /> Header append Vary User-Agent env=!dont-vary<br /> <br /> <br /> AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon<br /> <br /> <br /> <br /> <br /> Header append Vary: Accept-Encoding<br /> <br /> <br /> <br /> <br /> Header set Pragma "public"<br /> Header append Cache-Control "public, must-revalidate, proxy-revalidate"<br /> <br /> FileETag MTime Size<br /> <br /> Header set X-Powered-By "prestaspeed"<br /> <br /> <br /> <br /> <br /> Header set Pragma "public"<br /> Header append Cache-Control "public, must-revalidate, proxy-revalidate"<br /> <br /> FileETag MTime Size<br /> <br /> Header set X-Powered-By "prestaspeed"<br /> <br /> <br /> <br /> <br /> Header set Pragma "public"<br /> Header append Cache-Control "public, must-revalidate, proxy-revalidate"<br /> <br /> FileETag MTime Size<br /> <br /> Header set X-Powered-By "prestaspeed"<br /> <br /> <br /> <br /> <br /> # mod_headers, y u no match by Content-Type?!<br /> <br /> SetEnvIf Origin ":" IS_CORS<br /> Header set Access-Control-Allow-Origin "*" env=IS_CORS<br /> <br /> <br /> <br /><br /> <br /> <br /> Header set Access-Control-Allow-Origin "*"<br /> <br /> <br /> <br /> Header set Connection keep-alive<br /> <br /><br /><br /> # compress text, html, javascript, css, xml:<br /> AddOutputFilterByType DEFLATE text/plain<br /> AddOutputFilterByType DEFLATE text/html<br /> AddOutputFilterByType DEFLATE text/xml<br /> AddOutputFilterByType DEFLATE text/css<br /> AddOutputFilterByType DEFLATE application/xml<br /> AddOutputFilterByType DEFLATE application/xhtml+xml<br /> AddOutputFilterByType DEFLATE application/rss+xml<br /> AddOutputFilterByType DEFLATE application/javascript<br /> AddOutputFilterByType DEFLATE application/x-javascript<br /> # Common Fonts<br /> AddOutputFilterByType DEFLATE image/svg+xml<br /> AddOutputFilterByType DEFLATE application/x-font-ttf<br /> AddOutputFilterByType DEFLATE application/font-woff<br /> AddOutputFilterByType DEFLATE application/vnd.ms-fontobject<br /> AddOutputFilterByType DEFLATE application/x-font-otf<br /> #Prestaspeed addon end<br /><br />Merci d'avance
Salut @MICKAELB3,
Possible de faire une copie de sauvegarde de votre fichier .htacess actuel puis le modifier en éliminant toutes les directives du module mod_expires.c ?
N'oubliez pas de vider le cache de votre navigateur avant de voir si ce bout de code est responsable du problème signalé.
Pourquoi ton image renvoie un code 404 not found??.
http://testuri.org/sniffer?url=http://www.webzoom-phone.fr/img/devenir-designer.jpg
Le problème vient peut être de là aussi.
Merci pour vos réponses :
> Pourquoi ton image renvoie un code 404 not found??.
Effectivement je l'avais renommé pour que la bonne s'affiche, je l'ai réimportée avec le nom tu pourras check maintenant.
> Possible de faire une copie de sauvegarde de votre fichier .htacess actuel puis le modifier en éliminant toutes les directives du module mod_expires.c ?
Même problème après modification
Merci d'avance encore
Bonjour,
avez-vous essayer de purger le cache CDN dans le manager OVH (si cette fonction existe toujours) pour forcer la remise en cache ?
Cordialement, janus57
Bonjour @MICKAELB3,
Même problème après modification![]()
Merci d'avance encore
Êtes-vous bien certain d'avoir modifié le bon fichier .htaccess (www/.htaccess) ?
Merci pour vos réponses.
Oui j'ai essayé de purger le CDN, j'ai même décommander mon CDN mais même problème.
Pour le htaccess, j'ai bien appliqué ces changements sur le dossier racine www/ j'ai ensuite testé après nettoyage des caches de mon navigateur aucun changement.
Merci encore pour votre aide
@MICKAELB3,
Suivant les logs de connexion en FTP au serveur d'hébergement en date d'hier et aujourd'hui, je vois que vous avez récupéré une copie du fichier www/.htaccess, mais je ne vois pas après un téléchargement du fichier modifié vers le serveur. Pouvez-vous vérifier ce point s'il vous plaît ?
J'ai fait un Backup sur mon disque local, et modifié directement le htaccess sur le site .
Je test à l'instant vous pourrez vérifier en direct.
Fichier modifié à l'instant.<br /><br /> RewriteEngine on<br /> RewriteRule ^en/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^de/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^nl/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^it/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^es/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^pt/(.*)$ /fr/$1 [R=301,NC,L]<br /> RewriteRule ^/(.*)$ /fr/$1 [R=301,NC,L]<br /><br /> # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again<br /> # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution<br /> # http://www.prestashop.com<br /><br /> <br /> <br /> SetEnv HTTP_MOD_REWRITE On<br /> <br /><br /> RewriteEngine on<br /><br /><br /> #Domain: www.webzoom-phone.fr<br /> RewriteRule . - [E=REWRITEBASE:/]<br /> RewriteRule ^api$ api/ [L]<br /><br /> RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]<br /><br /> # Images<br /> RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]<br /> RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]<br /> RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]<br /> RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]<br /> RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]<br /> # AlphaImageLoader for IE and fancybox<br /> RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]<br /><br /> # Dispatcher<br /> RewriteCond %{REQUEST_FILENAME} -s [OR]<br /> RewriteCond %{REQUEST_FILENAME} -l [OR]<br /> RewriteCond %{REQUEST_FILENAME} -d<br /> RewriteRule ^.*$ - [NC,L]<br /> RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]<br /> <br /><br /> AddType application/vnd.ms-fontobject .eot<br /> AddType font/ttf .ttf<br /> AddType font/otf .otf<br /> AddType application/x-font-woff .woff<br /> <br /> <br /> Header add Access-Control-Allow-Origin "*"<br /> <br /> <br /><br /> <br /> Header unset Etag<br /> <br /> FileETag none<br /> <br /> <br /> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype<br /> <br /> <br /><br /> #If rewrite mod isn't enabled<br /> ErrorDocument 404 /index.php?controller=404<br /><br /> # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again<br /><br /> SetEnv REGISTER_GLOBALS 0<br /> SetEnv PHP_VER 5<br /> # URL rewriting module activation<br /> RewriteEngine on<br /> # URL rewriting rules<br /> RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]<br /> RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [L,E]<br /> RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]<br /> RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang=$1$5 [L,E]<br /> RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang=$1$4 [L,E]<br /> RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang=$1 [QSA,L,E]<br /> RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]<br /> RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]<br /> RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]<br /> RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]<br /> RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]<br /> RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]<br /> RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]<br /> # Catch 404 errors<br /> ErrorDocument 404 /404.php<br /><br /><br /><br /><br /><br /><br /><br /> #Prestaspeed addon start<br /> <br /> AddType text/css .css<br /> AddType application/x-javascript .js<br /> AddType text/x-component .htc<br /> AddType text/html .html .htm<br /> AddType text/richtext .rtf .rtx<br /> AddType image/svg+xml .svg .svgz<br /> AddType text/plain .txt<br /> AddType text/xsd .xsd<br /> AddType text/xsl .xsl<br /> AddType text/xml .xml<br /> AddType video/asf .asf .asx .wax .wmv .wmx<br /> AddType video/avi .avi<br /> AddType image/bmp .bmp<br /> AddType application/java .class<br /> AddType video/divx .divx<br /> AddType application/msword .doc .docx<br /> AddType application/vnd.ms-fontobject .eot<br /> AddType application/x-msdownload .exe<br /> AddType image/gif .gif<br /> AddType application/x-gzip .gz .gzip<br /> AddType image/x-icon .ico<br /> AddType image/jpeg .jpg .jpeg .jpe<br /> AddType application/vnd.ms-access .mdb<br /> AddType audio/midi .mid .midi<br /> AddType video/quicktime .mov .qt<br /> AddType audio/mpeg .mp3 .m4a<br /> AddType video/mp4 .mp4 .m4v<br /> AddType video/mpeg .mpeg .mpg .mpe<br /> AddType application/vnd.ms-project .mpp<br /> AddType application/x-font-otf .otf<br /> AddType application/vnd.oasis.opendocument.database .odb<br /> AddType application/vnd.oasis.opendocument.chart .odc<br /> AddType application/vnd.oasis.opendocument.formula .odf<br /> AddType application/vnd.oasis.opendocument.graphics .odg<br /> AddType application/vnd.oasis.opendocument.presentation .odp<br /> AddType application/vnd.oasis.opendocument.spreadsheet .ods<br /> AddType application/vnd.oasis.opendocument.text .odt<br /> AddType audio/ogg .ogg<br /> AddType application/pdf .pdf<br /> AddType image/png .png<br /> AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx<br /> AddType audio/x-realaudio .ra .ram<br /> AddType application/x-shockwave-flash .swf<br /> AddType application/x-tar .tar<br /> AddType image/tiff .tif .tiff<br /> AddType application/x-font-ttf .ttf .ttc<br /> AddType audio/wav .wav<br /> AddType audio/wma .wma<br /> AddType application/vnd.ms-write .wri<br /> AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw<br /> AddType application/zip .zip<br /> <br /> <br /><br /> Header unset ETag<br /> FileETag None<br /> <br /> <br /> #The following line is enough for .js and .css<br /> AddOutputFilter DEFLATE js css<br /><br /> #The following line also enables compression by file content type, for the following list of Content-Type:s<br /> AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml<br /><br /> #The following lines are to avoid bugs with some browsers<br /> BrowserMatch ^Mozilla/4 gzip-only-text/html<br /> BrowserMatch ^Mozilla/4\.0[678] no-gzip<br /> BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br /> <br /> BrowserMatch ^Mozilla/4 gzip-only-text/html<br /> BrowserMatch ^Mozilla/4\.0[678] no-gzip<br /> BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br /> BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html<br /> <br /> <br /> Header append Vary User-Agent env=!dont-vary<br /> <br /> <br /> AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon<br /> <br /> <br /> <br /> <br /> Header append Vary: Accept-Encoding<br /> <br /> <br /> <br /> <br /> Header set Pragma "public"<br /> Header append Cache-Control "public, must-revalidate, proxy-revalidate"<br /> <br /> FileETag MTime Size<br /> <br /> Header set X-Powered-By "prestaspeed"<br /> <br /> <br /> <br /> <br /> Header set Pragma "public"<br /> Header append Cache-Control "public, must-revalidate, proxy-revalidate"<br /> <br /> FileETag MTime Size<br /> <br /> Header set X-Powered-By "prestaspeed"<br /> <br /> <br /> <br /> <br /> Header set Pragma "public"<br /> Header append Cache-Control "public, must-revalidate, proxy-revalidate"<br /> <br /> FileETag MTime Size<br /> <br /> Header set X-Powered-By "prestaspeed"<br /> <br /> <br /> <br /> <br /> # mod_headers, y u no match by Content-Type?!<br /> <br /> SetEnvIf Origin ":" IS_CORS<br /> Header set Access-Control-Allow-Origin "*" env=IS_CORS<br /> <br /> <br /> <br /><br /> <br /> <br /> Header set Access-Control-Allow-Origin "*"<br /> <br /> <br /> <br /> Header set Connection keep-alive<br /> <br /><br /><br /> # compress text, html, javascript, css, xml:<br /> AddOutputFilterByType DEFLATE text/plain<br /> AddOutputFilterByType DEFLATE text/html<br /> AddOutputFilterByType DEFLATE text/xml<br /> AddOutputFilterByType DEFLATE text/css<br /> AddOutputFilterByType DEFLATE application/xml<br /> AddOutputFilterByType DEFLATE application/xhtml+xml<br /> AddOutputFilterByType DEFLATE application/rss+xml<br /> AddOutputFilterByType DEFLATE application/javascript<br /> AddOutputFilterByType DEFLATE application/x-javascript<br /> # Common Fonts<br /> AddOutputFilterByType DEFLATE image/svg+xml<br /> AddOutputFilterByType DEFLATE application/x-font-ttf<br /> AddOutputFilterByType DEFLATE application/font-woff<br /> AddOutputFilterByType DEFLATE application/vnd.ms-fontobject<br /> AddOutputFilterByType DEFLATE application/x-font-otf<br /> #Prestaspeed addon end
@MICKAELB3,
Je vérifie cela dans sou peu et je vous ferai un retour.
Merci d'avoir patienté @MICKAELB3,
J'ai effectué un Flush CDN de notre côté après avoir vérifié que vous avez bien édité le fichier .htaccess de votre site, j'ai vidé ensuite le cache du navigateur avec lequel j'ai fait les tests et désormais les deux liens suivants affichent le même contenu comme l'attestent ces captures d'écran :
https://www.1phone.fr/img/devenir-designer.jpgphone.fr/img/devenir-designer.jpg : https://plik.root.gg/file/q0ar0tHbr7JMrP0n/hLHtGhGnHGlhOCiJ/Screenshot%20from%202017-04-10%2013:14:24.png
http://www.1phone.fr/img/devenir-designer.jpgphone.fr/img/devenir-designer.jpg : https://plik.root.gg/file/q0ar0tHbr7JMrP0n/Gg1neBdl5Ld7lh5r/Screenshot%20from%202017-04-10%2013:14:10.png
Bonjour,
Effectivement maintenant ça marche, merci beaucoup.
Est ce que je dois complètement supprimé ces lignes du coup ? Ou puis-je optimisé le code pour éviter ce problème?
Cordialement.
Est ce que je dois complètement supprimé ces lignes du coup ? Ou puis-je optimisé le code pour éviter ce problème?
En fait, cela est lié à vos préférences et au besoin de votre site, si vous mettez à jour régulièrement les ressources considérées statiques, il est bien utile de penser à définir un délai d'expiration avec le module mod_expires (Cf. https://httpd.apache.org/docs/current/fr/mod/mod_expires.html ) inférieur à l'intervalle du temps qui sépare vos changements réguliers.
Il est bien également de choisir entre le http et le https.
Le Header HSTS peut aider ![]()
Je souhaite conserver mon site en https
Je ne connais pas du tout le HSTS ![]()
Pour ce qui est du fichier htaccess nous mettons en place souvent environ une fois par mois des modifications css.
En tout cas merci pour votre aide
@MICKAELB3,
Le mieux dans ce cas est de faire un recours à votre Webmaster afin de vous assister ou prendre en charge le développement des directives à mettre dans le fichier .htaccess de votre site suivant les choix que vous indiquez.
Concernant cette demande, si le problème signalé n'est plus d'actualité, n'hésitez pas à marquer ce sujet comme résolu.
Je souhaite conserver mon site en https
Je ne connais pas du tout le HSTS :confused:
Pour forcer le https
https://www.how-to.ovh/viewtopic.php?t=42#p704