# SIGA - .htaccess de public/ ยท REESCRITURA, OPCIONAL Y NO NECESARIA # # NO SUBAS ESTE ARCHIVO TODAVIA. # # SIGA funciona perfectamente SIN el, con direcciones del tipo: # https://tudominio.com/siga/public/index.php/ingresar # # Este archivo solo sirve para quitar el "index.php" de las direcciones: # https://tudominio.com/siga/public/ingresar # # Ya provoco un error 500 en este hosting una vez. Pruebalo unicamente # cuando SIGA este instalado y funcionando, y siguiendo este orden: # # 1. Sube este archivo a siga/public/ y renombralo a ".htaccess". # 2. Abre https://tudominio.com/siga/public/index.php # - Si carga -> la reescritura es admitida. Ve al paso 3. # - Si da 500 -> renombralo otra vez a .txt y olvidate del tema: # no pierdes ninguna funcionalidad. # 3. En public/index.php cambia: # define('SIGA_ESTILO_URL', 'ruta'); # por: # define('SIGA_ESTILO_URL', 'limpia'); # 4. Si algo se rompe, vuelve a 'ruta' y renombra este archivo a .txt. RewriteEngine On # Descomenta y ajusta si el hosting no resuelve bien la ruta base: # RewriteBase /siga/public/ # No tocar los archivos ni las carpetas que existen de verdad RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.php [QSA,L]