Skip to content

Instantly share code, notes, and snippets.

View mrkbr's full-sized avatar
🏠
little boy is born, working from home now

Mario Kober mrkbr

🏠
little boy is born, working from home now
View GitHub Profile
@mrkbr
mrkbr / gist:459acba931e96b11e0ed9f1a95564be6
Created December 30, 2019 09:04
typo3 config add headers
config {
additionalHeaders {
### https://securityheaders.com/
1.header = Server:
5.header = X-Powered-By:
10.header = strict-transport-security:max-age=31536000
20.header = X-Frame-Options: SAMEORIGIN
30.header = X-Xss-Protection: 1; mode=block
40.header = X-Content-Type-Options: nosniff
50.header = Referrer-Policy:strict-origin
@mrkbr
mrkbr / .htaccess
Last active March 2, 2018 15:02 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects #htaccess #server #redirect
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/