Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
.htaccess no me deja cargar archivos

Estoy usando htaccess para cargar mis archivos php, y mvc funciona bien, pero no puedo cargar archivos como imágenes, js, css, etc.

Mi estructura de carpetas es la misma que Laravel y mi archivo .htaccess es:

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

Si modifico el código puedo cargar las imágenes y algunas raíces diferentes pero no puedo cargar el /

Cualquier ayuda es apreciada

over 4 years ago · Santiago Trujillo
2 answers
Answer question

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 Report

0

La forma en que arreglé mi problema fue reemplazando el código en la pregunta por este

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

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!