yakunichkin/site.loc/master/web/.htaccess - Htaccess File

yakunichkin/site.loc/master/web/.htaccess

# Старая запись от миникурса:
#RewriteBase /

#RewriteCond %{REQUEST_FILENAME} !-f
#ewriteCond %{REQUEST_FILENAME} !-d

#RewriteRule . index.php

#---------------------------------#

# Новая запись c официального сайта по совету от phpNT:
# (yiiframework.com/doc-2.0/guide-tutorial-shared-hosting.html)

Options +FollowSymLinks
IndexIgnore */*

RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache