Created
July 3, 2019 15:52
-
-
Save sk1ter/9b5a72e2e0bd782465f04e5c3cdb623b to your computer and use it in GitHub Desktop.
Yii2 .htaccess file
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
Options +FollowSymLinks | |
IndexIgnore */* | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/(web) | |
RewriteRule ^assets/(.*)$ /web/assets/$1 [L] | |
RewriteRule ^css/(.*)$ web/css/$1 [L] | |
RewriteRule ^js/(.*)$ web/js/$1 [L] | |
RewriteRule ^images/(.*)$ web/images/$1 [L] | |
RewriteRule (.*) /web/$1 | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /web/index.php |
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
RewriteEngine On RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . index.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment