Created
March 14, 2018 06:54
-
-
Save ptflp/50ccdae9895aac97d871676928d6fbbf to your computer and use it in GitHub Desktop.
Yii2 advanced app htaccess for frontend and backend
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
# use mode rewrite for pretty URL support | |
RewriteEngine on | |
# if a directory or a file exists, use the request directly | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
# otherwise forward the request to index.php | |
RewriteRule . index.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment