RewriteEngine On

# Redirecionar para HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Retirada do WWW
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule (.*) https://%1/$1 [R=301,L]



RewriteCond %{HTTP_HOST} ^painel.wickler.com.br
RewriteCond %{REQUEST_URI} !public/
RewriteRule ^(.*)$ public/$1 [L]

RewriteCond %{HTTP_HOST} ^payment.wickler.com.br
RewriteCond %{REQUEST_URI} !public/
RewriteRule ^(.*)$ public/$1 [L]

RewriteCond %{HTTP_HOST} ^cliente.wickler.com.br
RewriteCond %{REQUEST_URI} !public/
RewriteRule ^(.*)$ public/$1 [L]

RewriteCond %{HTTP_HOST} ^central.wickler.com.br
RewriteCond %{REQUEST_URI} !public/
RewriteRule ^(.*)$ public/$1 [L]

RewriteCond %{HTTP_HOST} ^doc.wickler.com.br
RewriteCond %{REQUEST_URI} !public/
RewriteRule ^(.*)$ public/$1 [L]

RewriteCond %{HTTP_HOST} ^webhook.wickler.com.br
RewriteCond %{REQUEST_URI} !public/
RewriteRule ^(.*)$ public/$1 [L]

RewriteCond %{HTTP_HOST} ^vicomhub.wickler.com.br
RewriteCond %{REQUEST_URI} !public/
RewriteRule ^(.*)$ public/$1 [L]

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 172.190.142.176
deny from 4.241.111.42
deny from 13.229.139.71
deny from 18.182.13.115
deny from 74.7.227.63
deny from 34.243.12.31
deny from 16.176.174.14
deny from 45.141.215.36
deny from 4.241.171.60
deny from 4.241.171.157

# php -- BEGIN cPanel-generated handler, do not edit
# Defina o pacote “ea-php82” como a linguagem padrão de programação “PHP”.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
