Questions tagged [mod-headers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
0 answers

Automatic display of WebP images instead of JPG images via Htaccess

I use Wordpress, the plugin "EWWW Image Optimizer" creates from JPG images automatically also WebP versions (example: From the image image.jpg is also an image image.jpg.webp created). The ...
dajana.s's user avatar
  • 141
2 votes
1 answer

Security headers set in .htaccess not taking effect on WordPress site with Cloudflare

We have a site on WPEngine that uses WP Rocket cache and Cloudflare where I have added security header directives in the .htaccess file, <IfModule mod_headers.c> # X-XSS-Protection ...
AlanP's user avatar
  • 121
1 vote
2 answers

How ExpiresByType and Header set Cache-Control works together?

I have: ExpiresActive On ExpiresByType image/jpg "access 2 years" And let's say: <filesMatch ".(jpg|jpeg|png|gif)$"> Header set Cache-Control "max-age=31536000, ...
Andrei's user avatar
  • 127
5 votes
2 answers

HSTS implementation in .htaccess when using www subdomain

Been looking at implementing HSTS in to one of our sites, hoping to validate it on the preload list. But I can't get my head around how it works with the www. Subdomain. Our site forces secure www....
Randomer11's user avatar
9 votes
2 answers

HSTS Preload section on .htaccess

Recently having moved a site to SSL, I looked into enforcing HSTS for eventual preload. The syntax is approved and the Chrome List allows it to be OK. However, not being a coder at all, a slight ...
Claverhouse's user avatar