Questions tagged [mod-headers]
The mod-headers tag has no usage guidance.
5 questions
3
votes
0
answers
284
views
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 ...
2
votes
1
answer
258
views
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
...
2
votes
2
answers
773
views
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, ...
5
votes
2
answers
2k
views
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....
9
votes
2
answers
3k
views
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 ...