In some posts image are not showing anymore !
The images also disappear from media library…
https://www.grizette.com/morceaux-choisis-histoire-de-lart-exposition-uzes/
https://www.grizette.com/camping-a-montpellier-et-environs/
https://www.grizette.com/la-pampa-plage-privee-la-grande-motte/
-
This topic was modified 4 years by
Bash.
This happens to me occasionally. The image disappears from the web page. It shows that the image is still in the library and reposting that same image does nothing. In order to restore the photos, I must delete them from the library and then upload them again from my computer. Then I must post them on the articles again. I have not been able to figure out what causes this, but fortunately it does not happen often.
Thanks !
But i think i’ve found the problem, it’s because of a rewrite rule i’ve put in the HTACCESS file to get rid of AMP :
# Redirect from AMP to non-AMP path
RewriteEngine On
RewriteCond %{REQUEST_URI} (.+)/*amp(.*)$
RewriteRule ^ %1/ [R=301,L]
And now all the images witn “AMP” in the name (like camping) are invisible
How can i do to fix it ?
Thanks for your response
Hello Bettina,
thanks for the answer but we don’t need a plugin as we can achevieve this in the HTACCESS file. We just need a litlle help on the exact syntax to use, because i’m not a specialist of this.
# Redirect from AMP to non-AMP path
RewriteEngine On
RewriteCond %{REQUEST_URI} (.+)/*amp(.*)$
RewriteRule ^ %1/ [R=301,L]
Perhaps we should replace
RewriteCond %{REQUEST_URI} (.+)/*amp(.*)$
by
RewriteCond %{REQUEST_URI} (.+)/?amp(.*)$
based on the AMP url structure witch is sommething like https://domain.com/page/?amp=
What do you think ?
-
This reply was modified 4 years by
Bash.