Skip to content

Instantly share code, notes, and snippets.

@joebasurto
Last active June 28, 2019 20:47
Show Gist options
  • Save joebasurto/cc3adf3c6ba4b9fc96a45785a43191c0 to your computer and use it in GitHub Desktop.
Save joebasurto/cc3adf3c6ba4b9fc96a45785a43191c0 to your computer and use it in GitHub Desktop.
HTACCESS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment