# Init Reglas URL
Options +FollowSymLinks
Options -Indexes
RewriteEngine On

# FORZAR A HTTPS (correcto)
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# API
RewriteRule ^api/([a-z]{3,})/([a-zA-Z]{3,})/?(.*)?$ app/api/index.php?class=$1&action=$2&id=$3 [L,QSA]

# URL corta
RewriteRule ^u/([^/]+)$ url-short.php?u=$1 [L,QSA]

# End Reglas URL

# Evitar indexado de motores de búsqueda
# Header set X-Robots-Tag "noindex, nofollow"