remk-wadriga/calories-calculating-yii2-project/master/web/.htaccess - Htaccess File

remk-wadriga/calories-calculating-yii2-project/master/web/.htaccess

Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
    RewriteEngine on

    # for api tests
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REMOTE_ADDR} (109.72.149.185)
    RewriteRule .* index-test.php [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* index.php [L]

</IfModule>

On Github License

Files

Download PDF of Htaccess file
REMOTE_ADDR, REQUEST_FILENAME

Comments

Apache