.htaccess ne fonctionne pas

Bonjour
J'ai rédiger mon .htaccess comme d'habitude mais cette fois rien ne fonctionne…
Voyez vous le problème que je cherche à résoudre depuis plusieurs heures ?


Merci !


J'ai rédiger mon .htaccess comme d'habitude mais cette fois rien ne fonctionne...

Bonsoir @CalvinG

Avec aussi peu de détails et une copie de .htaccess fugitive, difficile de t'aider.
    # DO NOT REMOVE THIS LINE AND THE LINES BELOW SSL_REDIRECT:agt-geometre.com<br />    RewriteEngine on<br />    RewriteCond %{HTTPS} off<br />    RewriteCond %{HTTP_HOST} agt-geometre.com$<br />    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R&#61;301]<br /><br />    RewriteEngine On<br />    RewriteCond %{HTTP_HOST} !^www\. [NC]<br />    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R&#61;301,L]<br />    # DO NOT REMOVE THIS LINE AND THE LINES ABOVE SSL_REDIRECT:agt-geometre.com<br /><br />    ## EXPIRES CACHING ##<br />    <br />      ExpiresActive On<br /><br />      # Images<br />      ExpiresByType image/jpeg &#34;access plus 1 year&#34;<br />      ExpiresByType image/gif &#34;access plus 1 year&#34;<br />      ExpiresByType image/png &#34;access plus 1 year&#34;<br />      ExpiresByType image/webp &#34;access plus 1 year&#34;<br />      ExpiresByType image/svg&#43;xml &#34;access plus 1 year&#34;<br />      ExpiresByType image/x-icon &#34;access plus 1 year&#34;<br /><br />      # Video<br />      ExpiresByType video/webm &#34;access plus 1 year&#34;<br />      ExpiresByType video/mp4 &#34;access plus 1 year&#34;<br />      ExpiresByType video/mpeg &#34;access plus 1 year&#34;<br /><br />      # Fonts<br />      ExpiresByType font/ttf &#34;access plus 1 year&#34;<br />      ExpiresByType font/otf &#34;access plus 1 year&#34;<br />      ExpiresByType font/woff &#34;access plus 1 year&#34;<br />      ExpiresByType font/woff2 &#34;access plus 1 year&#34;<br />      ExpiresByType application/font-woff &#34;access plus 1 year&#34;<br /><br />      # CSS, JavaScript<br />      ExpiresByType text/css &#34;access plus 1 month&#34;<br />      ExpiresByType text/javascript &#34;access plus 1 month&#34;<br />      ExpiresByType application/javascript &#34;access plus 1 month&#34;<br /><br />      # Others<br />      ExpiresByType application/pdf &#34;access plus 1 month&#34;<br />      ExpiresByType image/vnd.microsoft.icon &#34;access plus 1 year&#34;<br />    <br />     ## EXPIRES CACHING ##<br /><br />    # BEGIN Cache-Control Headers<br />    <br />     <br />     Header set Cache-Control &#34;max-age&#61;2592000, public&#34;<br />     <br />     <br />     Header set Cache-Control &#34;max-age&#61;2592000, private&#34;<br />     <br />    <br />    Header set Cache-Control &#34;max-age&#61;7200, public&#34;<br />    <br />    # Disable caching for scripts and other dynamic files<br />    <br />    Header unset Cache-Control<br />    <br />    <br />    # END Cache-Control Headers

Désolé elle chargeait :confused:

Désolé elle chargeait :confused:

En gros la mise en cache ne fonctionne pas


En gros la mise en cache ne fonctionne pas

Quelle mise en cache ?
Chez moi, l'affichage est correct.

Quand je test mon site sur PageSpeed Insights ou autres il me met "
Diffusez des éléments statiques grâce à des règles de cache efficaces"

La mise des fichiers jpg ou css en cache ne se fait pas selon eux

Bonjour,

Non non y a bien du cache.
Le truc c'est que Google attends un cache de 30J alors que vous avez 1an de cache; voilà pourquoi il est pas content.

Cordialement, janus57