Manually adding recommended security headers problems
-
I followed your guide to Manually adding recommended security headers on WordPress: https://really-simple-ssl.com/site-health-recommended-security-headers/ but not working
the site crashes and tells me there is a problem with the file .htaccess
this is my .htaccess before:
BEGIN LSCACHE END LSCACHE BEGIN NON_LSCACHE END NON_LSCACHE This file was updated by Duplicator on 2018-03-25 07:05:17. See .htaccess.orig for the original .htaccess file. Please note that other plugins and resources write to this file. If the time-stamp above is different than the current time-stamp on the file system then another resource has updated this file. Duplicator only writes to this file once during the install process while running the installer.php file. Le direttive (linee) tra BEGIN WordPress e END WordPress sono generate dinamicamente, e dovrebbero essere modificate solo tramite i filtri di WordPress. Ogni modifica alle direttive tra questi marcatori verrà sovrascritta. Really Simple SSL Header always set Strict-Transport-Security: "max-age=31536000" env=HTTPS
Header always set Content-Security-Policy "upgrade-insecure-requests"
Header always set X-Content-Type-Options "nosniff"
Header always set X-XSS-Protection "1; mode=block"
Header always set Expect-CT "max-age=7776000, enforce"
Header always set Referrer-Policy: "no-referrer-when-downgrade" End Really Simple SSL Begin Really Simple Security RewriteEngine on RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] Options -Indexes End Really Simple Security BEGIN WordPress Le direttive (linee) tra BEGIN WordPress e END WordPress sono generate dinamicamente, e dovrebbero essere modificate solo tramite i filtri di WordPress. Ogni modifica alle direttive tra questi marcatori verrà sovrascritta. 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] END WordPressThanks in advance
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Manually adding recommended security headers problems’ is closed to new replies.