From d3f46d8c5e6d3073e56f19d0a820cd30ff4501a1 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 17 Feb 2025 13:03:46 +0100 Subject: [PATCH] wip #7264 @2 --- .htaccess | 18 +++++++- .idea/deployment.xml | 9 +++- framework/application/configs/application.ini | 41 ++++++++----------- index.php | 2 +- info.php | 3 +- 5 files changed, 44 insertions(+), 29 deletions(-) diff --git a/.htaccess b/.htaccess index 008dbbb..5d0e589 100644 --- a/.htaccess +++ b/.htaccess @@ -14,8 +14,23 @@ Options +FollowSymlinks RewriteEngine on RewriteBase / - # + RewriteCond %{HTTP_HOST} ^www.bloomsburie.com$ + RewriteRule ^(.*)$ https://bloomsburie.com/$1 [R=308,L] + + RewriteCond %{HTTPS} off + RewriteCond %{HTTP_HOST} ^(www\.)?bloomsburie\.com$ [NC] + RewriteRule ^(.*)$ https://bloomsburie.com%{REQUEST_URI} [E=UPGRADE,L,R=301] + + RewriteRule about-us.html about-us [L,R=308] + RewriteRule services.html Services [L,R=308] + RewriteRule carrers.html Carrers [L,R=308] + RewriteRule portfolio.html Portfolio [L,R=308] + RewriteRule contract-vehicles.html Contract-Vehicles [L,R=308] + RewriteRule contact-us.html Contact [L,R=308] + RewriteRule hcats.html Human-Capital [L,R=308] + RewriteRule portfolio-fema-fima.html Human-Capital [L,R=308] + RewriteRule position-elearning.html Position/eLearning-Developper [L,R=308] # Block browser access to the framework folder and sensitive files RewriteRule ^framework/.*$ - [F] @@ -42,6 +57,7 @@ Header Set Cache-Control "max-age=2592000" Header Set X-UA-Compatible "IE=edge" + Header always set Content-Security-Policy "upgrade-insecure-requests;" env=UPGRADE # Mime types diff --git a/.idea/deployment.xml b/.idea/deployment.xml index fbd385c..67c022d 100644 --- a/.idea/deployment.xml +++ b/.idea/deployment.xml @@ -1,6 +1,6 @@ - +