Created
May 10, 2018 07:40
-
-
Save inwdragon/f8863a20c9b2a1002bc276cdaad90fa7 to your computer and use it in GitHub Desktop.
.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
DirectoryIndex index.php | |
RewriteEngine on | |
# If it does not exist as a directory | |
RewriteCond %{REQUEST_FILENAME} !-d | |
# And if it does not exist as a file | |
RewriteCond %{REQUEST_FILENAME} !-f | |
# Then add .php to get the actual filename | |
RewriteRule ^(.*)/? index.php?url=$1 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment