Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

140
Vistas
.htaccess dont let me load files

Im using an htaccess to load my php files, and the mvc works good but I cannot load files like images, js, css, etc..

My folder structure its the same as Laravel and my .htaccess file is:

RewriteEngine On
RewriteRule ^([^/]+)/? index.php?url=$1 [L,QSA]

If i modify the code I can load the images and some differents roots but i cannot load the /

Any help its appreciated

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
over 4 years ago · Santiago Trujillo Denunciar

0

The way that I fixed my problem was replacing the code in the question for this one

RewriteEngine On
RewriteRule ^(.*?)\.(css|js|jpg|jpeg|png|pdf)$ - [L]
RewriteRule ^(.+)$ index.php?url=$1 [L,QSA]

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda