• News
  • Startups
  • Marketing
  • Ad Campaigns
  • Tech & Tools
  • How-to Guides
  • Insights
  • Culture & Media
Friday, May 23, 2025
  • Login
Digital Boom
  • News
  • Startups
  • Marketing
  • Ad Campaigns
  • Tech & Tools
  • How-to Guides
  • Insights
  • Culture & Media
No Result
View All Result
  • News
  • Startups
  • Marketing
  • Ad Campaigns
  • Tech & Tools
  • How-to Guides
  • Insights
  • Culture & Media
No Result
View All Result
Digital Boom
No Result
View All Result

WordPress SSL Alert: Missing Security Headers in .htaccess File

Ahmed Maher by Ahmed Maher
November 25, 2020
in Guides & Tutorials
2
A A
Wordpress Alert: Missing Security Headers in .htaccess File

Wordpress Alert: Missing Security Headers in .htaccess File

41
SHARES
203
VIEWS

WordPress website owners started to see a new alert with recommended actions in the WordPress site’s health security (if you have Simple SSL plugin active).

What caused the new health alert?

The new alert in the “Site heath” section appeared after updating the Really Simple SSL plugin.

In this article, we will fix the following missing security headers using the .htaccess file.

  • HTTP Strict Transport Security
  • Content Security Policy: Upgrade Insecure Requests
  • X-XSS protection
  • X-Content Type Options
  • Referrer-Policy
  • X-Frame-Options
  • Expect-CT

How to add the new security headers to the .htaccess file?

We’ve put together a single code to be added to your .htaccess file that will fix all your security headers issues, and then this alert will disappear accordingly.

Note: please make sure that you have access to your cPanel before implementing any of these lines in your htaccess file, because if something went wrong you will lose access to your wordpress admin dashboard.

Copy and paste the below code at the end of your .htaccess.

<ifModule mod_headers.c>
Header always set Content-Security-Policy “upgrade-insecure-requests;”
</IfModule>

# Security Headers
<IfModule mod_headers.c>
Header set X-XSS-Protection “1; mode=block”
Header set X-Frame-Options “SAMEORIGIN”
Header set X-Content-Type-Options “nosniff”
Header always set Strict-Transport-Security “max-age=63072000; includeSubDomains”
# Header set Content-Security-Policy …
Header set Referrer-Policy “same-origin”
</IfModule>

<IfModule mod_headers.c>
Header set Expect-CT enforce,max-age=2592000,report-uri=”https://foo.example/report”
</IfModule>

Tool to verify http response headers

To verify your http response headers fixes, you can test your url using on of the following tools/methods:

  • Security Headers
  • Redbot.org
  • or you can install a free wordpress plugin called “http headers plugin“

Happy Fixing!

Ahmed Maher

Ahmed Maher

Ahmed Maher is a marketing and growth leader with a proven track record across telecom, fintech, publishing, charity, government, e-commerce, and sports. He launched Vodafone Egypt’s digital and social media presence in 2008, setting new standards for brand engagement and performance marketing in the region. As the founder of Digital Boom, Ahmed has helped shape the voice of digital media in the Arab world. He brings a rare blend of creative vision and data-driven thinking, using digital tools and storytelling to drive measurable impact and scalable growth.

Related Posts

How to include current URL in a Webflow form?
Guides & Tutorials

Include current CMS item URL in Webflow forms

November 14, 2023
222
How Positive Thinking Can Turbo Charge Your Career
Guides & Tutorials

How Positive Thinking Can Turbo Charge Your Career

July 5, 2023
206
8 Mind-Blowing Websites to Boost Creativity You Probably Didn't Know Existed
Guides & Tutorials

8 Mind-Blowing Websites to Boost Creativity You Probably Didn’t Know Existed

July 4, 2023
204
How to Copy and paste between devices from your Mac/iPhone
Guides & Tutorials

How to enable copy and paste between Apple devices?

November 24, 2022
202
How to increase the time limit to unsend emails on iPhone?
Guides & Tutorials

How to increase the delay time to unsend emails on iPhone?

September 19, 2022
202
10 hidden settings in iOS 16 that you need to try today
Guides & Tutorials

10 hidden settings in iOS 16 that you need to try today

September 19, 2022
202

LATEST

Twitter History: Key Moments and Evolution from 2006 to Now
Tech & Tools

The History of Twitter: Key Milestones and Major Changes

by Dalia Khirfan
May 19, 2025
283
Mohamed Salah’s Rise: Goals, Glory, and Global Fame
Culture & Media

Mohamed Salah’s Rise: Goals, Glory, and Global Fame

by Editorial Team
May 19, 2025
449
Nawy Raises $75M to Accelerate Real Estate Tech in MENA
Startups

Nawy Raises $75M to Accelerate Real Estate Tech in MENA

by Ahmed Maher
May 18, 2025
310
Top 10 historical series to watch on Netflix in 2022
Culture & Media

Best Historical Dramas on Netflix to Watch in 2025

by Dana Khammash
May 18, 2025
256
Facebook Memorialization Guide for Families Without a Legacy Contact
Tech & Tools

Facebook Memorialization Guide for Families Without a Legacy Contact

by Ahmed Maher
May 18, 2025
304
  • Partners
  • Privacy Policy
  • About us
  • Contact us

© 2025 Digital Boom, Inc.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • About us
  • Become a Digital Boom Author
  • Contact us
  • Contributing Writers
  • Digital Boom Home
  • Digital Tools
  • Join us
  • Login/Register
  • My account
  • Partners
  • Privacy Policy
  • Staff
  • Terms of Use

© 2025 Digital Boom, Inc.

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.