Options +FollowSymLinks
RewriteEngine On

# REPORTES 
RewriteRule ^presupuesto-(.*)$ app/reportes/vistas/presupuesto.php?cedrif=$1 [L]
RewriteRule ^examenes-(.*)-(.*)$ app/reportes/vistas/examenes.php?cedrif=$1&firma=$2 [L]
RewriteRule ^recipes-(.*)$ app/reportes/vistas/recipes.php?cedrif=$1 [L]
RewriteRule ^constancias-(.*)-(.*)-(.*)$ app/reportes/vistas/constancias.php?constancia_ide=$1&cedrif=$2&firma=$3 [L]
RewriteRule ^consentimiento-(.*)$ app/reportes/vistas/consentimiento.php?ide=$1 [L]
RewriteRule ^reposos-(.+)-(.*)-(.*)-(.*)$ app/reportes/vistas/reposos.php?cedrif=$1&diag=$2&dias=$3&firma=$4 [L]
RewriteRule ^informes-(.*)-(.*)-(.*)$ app/reportes/vistas/informes.php?infor_ide=$1&cedrif=$2&firma=$3 [L]
RewriteRule ^historia-(.*)$ app/reportes/vistas/historia.php?cedrif=$1 [L]
Rewriterule ^factura-(.+)-(.+) app/reportes/vistas/factura.php?consulta=$1&consulta2=$2
Rewriterule ^cuadrecaja-(.+)/(.+)/(.+)/(.+)/(.+)$ app/reportes/vistas/cuadre_caja.php?f_inic=$1&f_fin=$2&tipcaja=$3&tipo=$4&detalle=$5
Rewriterule ^productos app/reportes/vistas/productos.php
RewriteRule ^compra-(.*)$ app/reportes/vistas/compra.php?ide=$1 [L]
Rewriterule ^pacientes app/reportes/vistas/pacientes.php
RewriteRule ^nomina/(.*)/(.*)/(.*)/(.*)/(.*)$ app/reportes/vistas/nomina.php?f_ini=$1&f_fin=$2&odonto=$3&porc_clin=$4&porc_odon=$5 [L]
RewriteRule ^manual-(.*)$ app/descargas/vistas/manual.pdf?manual=$1 [L]
RewriteRule ^abonos-(.*)-(.*)$ app/pagos/vistas/abonos.pdf.php?procedimiento_id=$1&ced=$2 [L]

# Pagos 
RewriteRule ^pag-(.*)$ app/pagos/vistas/$1\.php [L]
RewriteRule ^p-pag-(.*)$ app/pagos/procesos/$1\.php [L]