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

143
Views
.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 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

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 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!