What is SSL?
SSL (Secure Sockets Layer) is a protocol used to establish a secure and encrypted connection between a web server and a web browser. It ensures that any data transmitted between the server and the browser remains private and secure.
Common HTTPS Error
Subdomain SSL issue
![HTTPS Implementation 1 Site error and troubleshooting-subdomain don't support HSTS](https://easymarketing.uk/wp-content/uploads/2023/04/Site-error-and-troubleshooting-subdomain-dont-support-HSTS-1024x170.png)
![HTTPS Implementation 2 HTTPS Implementation error](https://easymarketing.uk/wp-content/uploads/2023/04/HTTPS-Implementation-error-1024x563.png)
How to Fix it?
- Set the server up with HSTS
Basic Requirements:
- Serve a valid certificate.
- Redirect from HTTP to HTTPS on the same host, if you are listening on port 80.
- Serve all subdomains over HTTPS.
- In particular, you must support HTTPS for the
www
subdomain if a DNS record for that subdomain exists.
- In particular, you must support HTTPS for the
- Serve an HSTS header on the base domain for HTTPS requests:
- The
max-age
must be at least31536000
seconds (1 year). - The
includeSubDomains
directive must be specified. - The
preload
directive must be specified. - If you are serving an additional redirect from your HTTPS site, that redirect must still have the HSTS header (rather than the page it redirects to).
- The
5. Edit .htaccess File with the request.
- Using SSH or the cPanel File Manager, navigate to the ~/public_html directory.
- Use your preferred text editor to open the .htaccess file.
If the .htaccess file does not already exist, create it. - Copy the following line, and then paste it into the .htaccess file
- Save your changes to the .htaccess file. HSTS is now enabled for your site.
Otc. 19th, 2023 updates
While you can add the HSTS header to your .htaccess
file in various locations, it’s generally recommended to place it at the top of the file. Placing it at the top ensures that the HSTS header is processed before any other directives
![HTTPS Implementation 3 HSTS header](https://easymarketing.uk/wp-content/uploads/2023/04/HSTS-header-1024x163.png)
Check HSTS Preload Status and Eligibility
Check the HSTS status and eligibility of our client’s website example on https://hstspreload.org/ before and after editing the .htaccess file. This will show you the current status of HSTS and whether the website is eligible for preload.
Before
![HTTPS Implementation 4 Check HSTS preload status and eligibility-before](https://easymarketing.uk/wp-content/uploads/2023/04/Check-HSTS-preload-status-and-eligibility-before.png)
After
![HTTPS Implementation 5 Check HSTS preload status and eligibility-after](https://easymarketing.uk/wp-content/uploads/2023/04/Check-HSTS-preload-status-and-eligibility-after.png)
The improved SEO results you will read from your SEO audit report.
![HTTPS Implementation 6 HTTPS Implementation, Technical SEO support from Easymarketing](https://easymarketing.uk/wp-content/uploads/2023/04/HTTPS-Implementation-Technical-SEO-support-from-Easymarketing--1024x589.png)
Technical SEO Support from Easy Marketing
Using HTTPS (secure HTTP) can help improve the security of your site and boost search engine rankings. This is what you will read from your SEO reports with the technical SEO support from Easy Marketing Team.