Skip to content

Instantly share code, notes, and snippets.

@daniloroddrigues
Created March 28, 2024 03:42
Show Gist options
  • Save daniloroddrigues/63eb41f630a2bd799f8c0327d74ca46f to your computer and use it in GitHub Desktop.
Save daniloroddrigues/63eb41f630a2bd799f8c0327d74ca46f to your computer and use it in GitHub Desktop.
Umbler Htaccess
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