JezK
Edit File: .htaccess.backup
############################################################################# ### WARNING: DO NOT EDIT THIS FILE, IF YOU DON'T KNOW WHAT YOU ARE DOING! ### ############################################################################# # BEGIN RB Limit Login Protector # END RB Limit Login Protector # Autodetect .webp images. If a request for a file ending with jpg./.jpeg./.png/.gif # is received, look for a related .webp image and load this instead. # Example: Requesting file.jpg => Look for file.webp or file.jpg.webp <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{DOCUMENT_ROOT}/$1.webp -f RewriteRule (.+)\.(jpe?g|png|gif)$ $1.webp [T=image/webp,E=REQUEST_image,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{DOCUMENT_ROOT}/$1.$2.webp -f RewriteRule (.+)\.(jpe?g|png|gif)$ $1.$2.webp [T=image/webp,E=REQUEST_image,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_URI} ^/(.+)\.(jpe?g|png|gif)$ [NC] RewriteCond %{DOCUMENT_ROOT}/%1.webp -f RewriteRule (.+)\.(jpe?g|png|gif)$ %1.webp [T=image/webp,E=REQUEST_image,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_URI} ^/(.+)\.(jpe?g|png|gif)$ [NC] RewriteCond %{DOCUMENT_ROOT}/%1.%2.webp -f RewriteRule (.+)\.(jpe?g|png|gif)$ %1.%2.webp [T=image/webp,E=REQUEST_image,L] Header append Vary Accept env=REQUEST_image </IfModule> # Handle extra MIME types AddType image/avif avif AddType image/avif-sequence avi AddType model/vnd.reality realityfs AddType model/vnd.usdz+zip usdz # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress