| Current Path : /var/www/eltornillo.com.mx/public_html/ |
| Current File : /var/www/eltornillo.com.mx/public_html/.htaccess |
RewriteEngine on
# Allow access to googlee00de1c2d78e7421.html
RewriteCond %{REQUEST_URI} ^/googlee00de1c2d78e7421.html
RewriteRule ^ - [L]
# Add this rule for Kibana at the top
RewriteCond %{REQUEST_URI} ^/k1B_836hyTHr43/
RewriteRule ^ - [L]
# END
# Regla especial para el área de administración (debe ir ANTES de la regla general)
RewriteCond %{REQUEST_URI} ^/admin [OR]
RewriteCond %{REQUEST_URI} ^/contacttables
RewriteRule ^ - [L]
# Redirección a /pub/ para el frontend
RewriteCond %{REQUEST_URI} !^/pub/
RewriteCond %{REQUEST_URI} !^/setup/
RewriteCond %{REQUEST_URI} !^/update/
RewriteCond %{REQUEST_URI} !^/dev/
RewriteRule .* /pub/$0 [L]
DirectoryIndex index.php
#BEGIN Blacklist (bots spam and ads)
#SetEnvIf GEOIP_COUNTRY_CODE MX AllowCountry
#SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry
SetEnvIf MMDB_COUNTRY_CODE MX AllowCountry
SetEnvIf MMDB_COUNTRY_CODE US AllowCountry
Require all denied
Require env AllowCountry
#Deny from all
#Allow from env=AllowCountry
#END Blacklist (bots spam and ads)