Last active
December 12, 2015 10:09
-
-
Save sjimenez77/4757482 to your computer and use it in GitHub Desktop.
Symfony2 / Silex: Configuración Apache: Configurando proyecto Silex (o Symfony) mediante archivo .htaccess en una subcarpeta del hosting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
# Ruta al inicio de la aplicación: /web/index.php | |
RewriteRule ^(.*)$ /web/index.php [QSA,L] | |
# Redirección de carpetas de imágenes, estilos y js para las plantillas TWIG | |
Redirect /img /web/img | |
Redirect /css /web/css | |
Redirect /js /web/js | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment