Created
April 12, 2016 09:31
-
-
Save pebriana/fb2e2ca67ab8d4c24b4001550415d37c to your computer and use it in GitHub Desktop.
redirect to https and remove index.php
This file contains hidden or 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 %{HTTPS} off | |
| RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule .* index.php/$0 [PT,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment