# Apache 2.2
Order deny,allow
Deny from all
Allow from all
# Apache 2.4
Require all denied
Require all granted
php_flag engine off
Options -Indexes
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/(scenes|p|c|s|su|st|m|co|cms|f|l)
RewriteCond %{HTTP_USER_AGENT} (Macintosh|iPhone|iPad|ipod|MacBook).*OS.*\s([\d]([0]{0,1}))_
RewriteRule (.+)\.webp$ $1.jpg [T=image/jpeg,E=REQUEST_image]
RewriteCond %{REQUEST_URI} !^/(scenes|p|c|s|su|st|m|co|cms|f|l)
RewriteCond %{HTTP_ACCEPT} !image/webp
RewriteRule (.+)\.webp$ $1.jpg [T=image/jpeg,E=REQUEST_image]
RewriteCond %{REQUEST_URI} !^/(scenes|p|c|s|su|st|m|co|cms|f|l)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)\.(webp|png|jpg|gif) ../getwebp.php?p=$1.$2 [L,R=301]