Add a header to each request using .htaccess

前端 未结 2 867
予麋鹿
予麋鹿 2020-12-30 23:46

I want to add a custom header to a phpbb installation without touching the code. (Using .htaccess)

The header is:

Strict-Transport-Security: max-age         


        
相关标签:
2条回答
  • 2020-12-30 23:53

    see http://httpd.apache.org/docs/2.0/mod/mod_headers.html

    Header add Strict-Transport-Security "max-age=157680000"
    
    0 讨论(0)
  • 2020-12-31 00:07
    Header add Strict-Transport-Security "max-age=157680000"
    

    http://httpd.apache.org/docs/2.0/mod/mod_headers.html

    0 讨论(0)
提交回复
热议问题