Options +FollowSymLinks
RewriteEngine on

Options All -Indexes
IndexIgnore *

RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteRule ^logaout logoaut.php
RewriteRule ^dashboard$ dashboard.php [L]
RewriteRule ^profile/(.*)$ profile.php?msj=$1 [L]
RewriteRule ^profile$ profile.php [L]
RewriteRule ^configuration$ configuration.php [L]

RewriteRule ^users/(.*)/dashboard/(.*)$ users/index.php?type=$1&parametros=$2 [L]
RewriteRule ^users/(.*)/dashboard$ users/index.php?type=$1& [L]
RewriteRule ^users/(.*)/add$ users/insertar.php?type=$1 [L]
RewriteRule ^users/edit/(.*)$ users/modificar.php?id=$1 [L]

RewriteRule ^provider/dashboard/(.*) provider/index.php?parametros=$1 [L]
RewriteRule ^provider/dashboard$ provider/index.php [L]
RewriteRule ^provider/add$ provider/insertar.php [L]
RewriteRule ^provider/edit/(.*)$ provider/modificar.php?id=$1 [L]
RewriteRule ^provider/import$ provider/importar.php [L]

RewriteRule ^client/dashboard/(.*) client/index.php?parametros=$1 [L]
RewriteRule ^client/dashboard$ client/index.php [L]
RewriteRule ^client/add$ client/insertar.php [L]
RewriteRule ^client/edit/(.*)$ client/modificar.php?id=$1 [L]
RewriteRule ^client/import$ client/importar.php [L]

RewriteRule ^categories/dashboard/(.*) category/index.php?parametros=$1 [L]
RewriteRule ^categories/dashboard$ category/index.php [L]
RewriteRule ^categories/add$ category/insertar.php [L]
RewriteRule ^categories/edit/(.*)$ category/modificar.php?id=$1 [L]

RewriteRule ^files/dashboard/(.*) file/index.php?parametros=$1 [L]
RewriteRule ^files/dashboard$ file/index.php [L]
RewriteRule ^files/add$ file/insertar.php [L]
RewriteRule ^files/edit/(.*)$ file/modificar.php?id=$1 [L]


RewriteRule ^logs/(.*)$ log.php?parametros=$1 [L]
RewriteRule ^logs$ log.php [L]
