L
L
Leshiy666132016-10-27 03:38:26
In contact with
Leshiy66613, 2016-10-27 03:38:26

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

1 answer(s)
V
Viktor Taran, 2016-10-27
@shambler81

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 question

Ask a Question

731 491 924 answers to any question