
AddDefaultCharset ISO-8859-1


#Redirect de p�gina de erro
#ErrorDocument 404 /index.php?not_found=true

#URL Rewrite
RewriteEngine on
RewriteBase / 

#Config SSL, colocar abaixo de RewriteBase / 
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ http://www.coafdigital.com.br/$1 [R,L]

#RewriteCond %{HTTP_COOKIE} !^.*carrinho_itens.*$ [NC]
#RewriteCond %{REQUEST_URI} !^.*cookies.*$ [NC]
#RewriteRule ^.* /index.php?pagina=cookies

RewriteCond %{REQUEST_URI} !/atendimento/$
RewriteCond %{REQUEST_URI} !/chat/$
RewriteCond %{REQUEST_URI} !/admin/$

RewriteRule ^service/cron/([a-zA-Z\+\_\-]+).html$ /library/handler/cron_handler.php?%{QUERY_STRING}&handler=$1

#Idioma
RewriteRule ^([a-zA-Z]{2})-([a-zA-Z]{2})/?$ /index.php?%{QUERY_STRING}&idioma=$1&country=$2

#Home
RewriteRule ^(home)$ /index.php

#Admin
RewriteRule ^(admin)/?$ /admin/index.php

#atendimento
RewriteRule ^(atendimento)/?$ /atendimento/index.php
RewriteRule ^(atendimento/super)/?$ /atendimento/super/index.php
RewriteRule ^(atendimento/web)/?$ /atendimento/web/index.php

RewriteRule ^(atendimento/setup)/?$ /atendimento/setup/index.php
RewriteRule ^(atendimento/ops)/?$ /atendimento/ops/index.php
RewriteRule ^(atendimento/geoip)/?$ /atendimento/ops/index.php



RewriteRule ^(chat)/?$ /chat/index.php
RewriteRule ^(chat/super)/?$ /chat/super/index.php
RewriteRule ^(chat/setup)/?$ /chat/setup/index.php
RewriteRule ^(chat/ops)/?$ /chat/ops/index.php
RewriteRule ^(chat/geoip)/?$ /chat/ops/index.php

#P�gina
RewriteRule ^([a-zA-Z0-9_-]+).html$ /index.php?%{QUERY_STRING}&pagina=$1

#M�dulo
RewriteCond %{REQUEST_URI} !browser.html$
RewriteRule ^([a-zA-Z0-9_-]+)/?$ /index.php?%{QUERY_STRING}&module=$1

#M�dulo c/ Action
RewriteCond %{REQUEST_URI} !browser.html$
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/?$ /index.php?%{QUERY_STRING}&module=$1&action=$2

#M�dulo / Action c/ 1 Par�metro
RewriteCond %{REQUEST_URI} !browser.html$
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/?$ /index.php?%{QUERY_STRING}&module=$1&action=$2&param1=$3

#M�dulo / Action c/ 2 Par�metros
RewriteCond %{REQUEST_URI} !browser.html$
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/?$ /index.php?%{QUERY_STRING}&module=$1&action=$2&param1=$3&param2=$4

#M�dulo / Action c/ 3 Par�metros
RewriteCond %{REQUEST_URI} !browser.html$
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/?$ /index.php?%{QUERY_STRING}&module=$1&action=$2&param1=$3&param2=$4&param3=$5

#Not�cia
RewriteCond %{REQUEST_URI} !browser.html$
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+).html$ /index.php?%{QUERY_STRING}&module=$1&param1=$2&param2=$3

#CALENDARIO
RewriteCond %{REQUEST_URI} !browser.html$
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+).html$ /index.php?%{QUERY_STRING}&&module=$1&param1=$2

#FCK
RewriteCond %{REQUEST_URI} !browser.html$
RewriteCond %{REQUEST_URI} !ckfinder.html$
RewriteCond %{REQUEST_URI} !/media
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+).html$ /index.php?%{QUERY_STRING}&module=$1&action=$2&param1=$3&param2=$4

#Compress�o de HTML e CSS, GIF e JPG

AddOutputFilterByType DEFLATE text/html

<FilesMatch "\.(css|gif|jpg|JPG)$">
   SetOutputFilter DEFLATE
</FilesMatch>

#Charset
AddDefaultCharset ISO-8859-1

# php -- BEGIN cPanel-generated handler, do not edit
# This domain inherits the “PHP” package.
# php -- END cPanel-generated handler, do not edit

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php5_module>
   php_flag asp_tags Off
   php_flag display_errors On
   php_value max_execution_time 2700
   php_value max_input_time 90
   php_value max_input_vars 3000
   php_value memory_limit 768M
   php_value post_max_size 256M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea3"
   php_value upload_max_filesize 512M
   php_flag zlib.output_compression On
</IfModule>
<IfModule lsapi_module>
   php_flag asp_tags Off
   php_flag display_errors On
   php_value max_execution_time 2700
   php_value max_input_time 90
   php_value max_input_vars 3000
   php_value memory_limit 768M
   php_value post_max_size 256M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea3"
   php_value upload_max_filesize 512M
   php_flag zlib.output_compression On
</IfModule>
# END cPanel-generated php ini directives, do not edit
