fijj/pearl/master/public_html/.htaccess - Htaccess File

fijj/pearl/master/public_html/.htaccess

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

RewriteCond %{HTTP:Accept-Language} (ru) [NC]
RewriteCond %{HTTP_USER_AGENT} !(google|yandex) [NC]
RewriteRule ^pearl/index.php?r=site/about$ /404 [L,R=301]

On Github License

Files

Download PDF of Htaccess file
HTTP_USER_AGENT, REQUEST_FILENAME

Comments

Apache