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_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://adminocls.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://adminocls.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://test.adminocls.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://test.adminocls.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.adminocls.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.adminocls.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.test.adminocls.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.test.adminocls.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://adminocls.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://adminocls.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://test.adminocls.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://test.adminocls.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.adminocls.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.adminocls.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.test.adminocls.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.test.adminocls.com$      [NC]
RewriteRule .*\.(jpeg|gif|bmp)$ - [F,NC]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
