2018-12-03, 05:06 PM
Hi, I'm having problem of it for while until I decided to try to expirement. It takes me about 3 hours to figure it out with the help with this thread https://community.mybb.com/thread-210349.html. Because whatever I tried doesn't work 'till I realized I edited the wrong file Here how I did it.
1. Login to your Filemanager in your host.
2. Find .htaccess not .htaccess.text or htaccess-nginx.txt
3. Add the code. Make sure to backup the original codes incase.
4. Save it and ta da!
Screenshots attached.
br,
GSMKing
https://gsmunited.com.ph/
1. Login to your Filemanager in your host.
2. Find .htaccess not .htaccess.text or htaccess-nginx.txt
3. Add the code. Make sure to backup the original codes incase.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
Header always set Content-Security-Policy "upgrade-insecure-requests; default-src https: data: 'unsafe-inline' 'unsafe-eval'"
Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "deny"
Header always set X-XSS-Protection "1; mode=block"
4. Save it and ta da!
Screenshots attached.
br,
GSMKing
https://gsmunited.com.ph/