Skip to main content
Help Center
The GoDaddy Community will undergo maintenance starting on Tuesday, August 3rd at 3pm PST / 6pm EST. Learn more
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Helper V

Does cPanel hosting support Include files

I have a cPanel Ultimate Hosting account on Linux. I would like to enable HSTS in the config for my site instead of .htaccess files.

Does Godaddy cPanel hosting support include files and if so where would I place the files and what name would I use.



Hi @oslinux

You cannot enable HSTS with any of our shared hosting accounts. A Virtual Dedicated or Dedicated Server will allow you to enable to do so. Sorry, this isn't something that we support so I don't have much information to provide. Maybe one of our community members can chime in with more information. 

KayJay - GoDaddy | Community Moderator
24/7 support available at

You can enable HSTS for hosting accounts using the .htaccess file.

Adding the following in .htaccess file to enableHSTS

Header set Strict-Transport-Security "max-age=31536000" env=HTTPS

Testing with curl confirms that HSTS is enabled 

curl -s -D- | grep Strict
Strict-Transport-Security: max-age=31536000


@charminglygeeky do you know if Godaddy supports include files for cPannel accounts? 

are you sure it helps..i moved my website to Askforoffer it lost backlinks. the same solution is read in other article that it will help to get back those links but its not working

I am shocked that Godaddy does not enable HSTS on their shared hosting plans. This is a stunning security failure by Godaddy, leaving their clients' shared hosting plans vulnerable to a common and widely known security attack. Lots of other hosting companies routinely offer HSTS enablement. Why cannot Godaddy? More importantly, why will not Godaddy?