Skip to content

Instantly share code, notes, and snippets.

@mzaini30
Last active April 24, 2021 06:37
Show Gist options
  • Save mzaini30/599fdef67d498e5d0c2d5ce4f6a98897 to your computer and use it in GitHub Desktop.
Save mzaini30/599fdef67d498e5d0c2d5ce4f6a98897 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteBase /
RewriteRule ^index.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment