Created
March 28, 2024 03:42
-
-
Save daniloroddrigues/63eb41f630a2bd799f8c0327d74ca46f to your computer and use it in GitHub Desktop.
Umbler Htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R,L] | |
RewriteEngine On | |
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
Header always set Content-Security-Policy: upgrade-insecure-requests |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment