WPIntell

Source evidence

Getting syntax error when adding Header

Htaccess File Editor – Safely Edit Htaccess File · support · 2022-01-30T00:00:00+00:00

mixedsentiment
highseverity
0.83relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 14 rows with source links

28.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

10 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
churwitz resolved
Trying to add the following to the top of the htaccess file and getting a syntax error when I test before saving. Are Headers not editable in the plugin? # Really Simple SSL Header always set Strict-Transport-Security: "max-age=31536000" env=HTTPS # End Really Simple SSL Htaccess editor doesn’t restrict what you can add to the .htaccess file. Headers, redirect code, blocking an IP – it’s all the same for the plugin 🙂 As for the code you’re adding I’d try this: <IfModule mod_headers.c> Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS </IfModule> If you have a minute, please leave a review. It’s what keeps support going. Thank you 🙏 https://wordpress.org/support/plugin/wp-htaccess-editor/reviews/#new-post

Comments

1 shown
WebFactory 2022-01-30T07:40:00+00:00

Htaccess editor doesn’t restrict what you can add to the .htaccess file. Headers, redirect code, blocking an IP – it’s all the same for the plugin 🙂 As for the code you’re adding I’d try this: <IfModule mod_headers.c> Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS </IfModule> If you have a minute, please leave a review. It’s what keeps support going. Thank you 🙏 https://wordpress.org/support/plugin/wp-htaccess-editor/reviews/#new-post