IStranger/yii2-demo-site/master/basic/.htaccess - Htaccess File

IStranger/yii2-demo-site/master/basic/.htaccess

## Set document root to be "basic/web"
#DocumentRoot "path/to/basic/web"
#
#<Directory "path/to/basic/web">
#    # use mod_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
#
#    # ...other settings...
#</Directory>

# use mod_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. This path taking into account DocumentRoot from httpd-vhosts.conf
RewriteRule . /index.php
# ...other settings...

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache