wodrow/Yii2Mall/master/frontend/web/.htaccess - Htaccess File

wodrow/Yii2Mall/master/frontend/web/.htaccess

<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
order deny,allow
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?test.mint.test(/)?.*$     [NC]
#RewriteRule .*.(gif|jpg|jpeg|bmp|png)$ test.mini.test/test.php [R,NC,L]

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
HTTP_REFERER, REQUEST_FILENAME

Comments

Apache