Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | Nächste Überarbeitung Beide Seiten der Revision | ||
public:faqwebp [2021/10/18 10:16] kamiarnader [FAQs] |
public:faqwebp [2021/10/18 15:54] hendrikbahr [Installation] |
||
---|---|---|---|
Zeile 50: | Zeile 50: | ||
RewriteCond %{HTTP_ACCEPT} image/webp | RewriteCond %{HTTP_ACCEPT} image/webp | ||
RewriteCond %{REQUEST_URI} (?i)(.*)(\.jpe?g|\.png|\.gif)$ | RewriteCond %{REQUEST_URI} (?i)(.*)(\.jpe?g|\.png|\.gif)$ | ||
+ | RewriteCond %{QUERY_STRING} !.*nowebp=true.* | ||
RewriteCond %{DOCUMENT_ROOT}%1.webp -f | RewriteCond %{DOCUMENT_ROOT}%1.webp -f | ||
RewriteRule (?i)(.*)(\.jpe?g|\.png|\.gif)$ %1\.webp [L,T=image/webp] | RewriteRule (?i)(.*)(\.jpe?g|\.png|\.gif)$ %1\.webp [L,T=image/webp] | ||
Zeile 57: | Zeile 58: | ||
RewriteCond %{HTTP_HOST} ^[REPLACE WITH YOUR DOMAIN IN FORM www\.fatchip\.de] | RewriteCond %{HTTP_HOST} ^[REPLACE WITH YOUR DOMAIN IN FORM www\.fatchip\.de] | ||
RewriteCond %{REQUEST_URI} (\/out\/pictures\/generated\/) | RewriteCond %{REQUEST_URI} (\/out\/pictures\/generated\/) | ||
+ | RewriteCond %{QUERY_STRING} !.*nowebp=true.* | ||
RewriteCond %{REQUEST_FILENAME} !-d | RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule (\.jpe?g|\.gif|\.png)$ modules/fc/fcwebp/getwebp.php [NC] | RewriteRule (\.jpe?g|\.gif|\.png)$ modules/fc/fcwebp/getwebp.php [NC] | ||
Zeile 64: | Zeile 66: | ||
RewriteCond %{HTTP_HOST} ^[REPLACE WITH YOUR DOMAIN IN FORM www\.fatchip\.de] | RewriteCond %{HTTP_HOST} ^[REPLACE WITH YOUR DOMAIN IN FORM www\.fatchip\.de] | ||
RewriteCond %{REQUEST_URI} (\.jpe?g|\.png|\.gif) | RewriteCond %{REQUEST_URI} (\.jpe?g|\.png|\.gif) | ||
+ | RewriteCond %{QUERY_STRING} !.*nowebp=true.* | ||
RewriteCond %{REQUEST_FILENAME} -f | RewriteCond %{REQUEST_FILENAME} -f | ||
RewriteRule (\.jpe?g|\.gif|\.png)$ modules/fc/fcwebp/getwebp.php [NC] | RewriteRule (\.jpe?g|\.gif|\.png)$ modules/fc/fcwebp/getwebp.php [NC] |