php_value date.timezone 'America/Caracas'
RewriteEngine on
RewriteBase /

Options -Indexes

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off


RewriteCond %{REQUEST_FILENAME} !/(core|plugins|dist)/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.(css|js|map|svg|ico|woff|woff2|ttf|png|jpg|gif)$)

#RewriteRule ^(.*[^\/])[\/]*$ index.php?page=$1&paciente=$2 [L,QSA]
#RewriteRule ^(.*[^\/])[\/]*$ index.php?page=$1 [L,QSA]

RewriteRule ^reports/(.*)/$ index.php?page=reports&opt=$1 [L,QSA]
RewriteRule ^files/(.*)/$ index.php?page=files&opt=$1 [L,QSA]

RewriteRule ^campanas/(.*)/(.*)/$ index.php?page=campanas&accion=$1&id1=$2 [L,QSA]
RewriteRule ^campanas/(.*)/$ index.php?page=campanas&accion=$1 [L,QSA]

RewriteRule ^campanas_push/(.*)/(.*)/$ index.php?page=campanas_push&accion=$1&id1=$2 [L,QSA]
RewriteRule ^campanas_push/(.*)/$ index.php?page=campanas_push&accion=$1 [L,QSA]

RewriteRule ^formularios/(.*)/(.*)/$ index.php?page=formularios&accion=$1&id1=$2 [L,QSA]
RewriteRule ^formularios/(.*)/$ index.php?page=formularios&accion=$1 [L,QSA]

RewriteRule ^notification/(.*)/(.*)/$ index.php?page=notification&accion=$1&id1=$2 [L,QSA]
RewriteRule ^tasks_details/(.*)/$ index.php?page=tasks_details&tkn=$1 [L,QSA]

RewriteRule ^cotizador_asesor/(.*)/$ index.php?page=cotizador_asesor&accion=$1 [L,QSA]

RewriteRule ^reporte_ventas/(.*)/(.*)/$ index.php?page=reporte_ventas&accion=$1&id1=$2 [L,QSA]


RewriteRule ^login/$ acceso.php?page=login&ambiente_systems=S [L,QSA]

RewriteRule ^login_access/(.*)/(.*)/$ acceso_agencias.php?page=login_access&token=$1&ibo=$2&ambiente_systems=S [L,QSA]


RewriteRule ^login_agencias/$ acceso.php?page=login&ambiente_systems=S [L,QSA]
RewriteRule ^login_asesores/$ acceso.php?page=login&ambiente_systems=S [L,QSA]

RewriteRule ^restablecer_contrasena/(.*)/$ recover_password.php?page=login&token=$1&ambiente_systems=S [L,QSA]


RewriteRule ^(.*)/$ index.php?page=$1 [L,QSA]