Answer the question
In order to leave comments, you need to log in
How to change htaccess so that RewriteRule doesn't block displaying images on other hosts?
By default, the htaccess file has a RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
.
It blocks images in reposts from the site. You press the repost button, the text is there, but the picture is not. Reposts in which pictures are loaded from other sites work. By removing this rule in the file, everything also works. How can I skip Facebook, VKontakte, etc.?
Answer the question
In order to leave comments, you need to log in
negation
RewriteCond %{HTTP_HOST} !^www\.(.фейсбукю\.ру) [NC]
RewriteCond %{HTTP_HOST} !^www\.(.фейсбукю2\.ру) [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question