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

309
Views
CSS no se carga al usar .htaccess

Esta es mi estructura de archivos: puedes verla aquí o

-recursos/
--css/
---index.css
-origen/
--puntos de vista/
---principal.vista.php
--principal.php
índice.php
.htaccess

Este es mi .htaccess:

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

Así es como incluyo el CSS en la vista.

 <link rel="stylesheet" href="resources/css/index.css">

Problema: cuando incluyo main.php (que incluye la vista) en index.php, el CSS no funciona sin importar dónde coloque index.css. ¿Alguna pista?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Debe agregar una regla para excluir la reescritura de activos

 #Checks to see if the user is attempting to access a valid file, #such as an image or css document, if this isn't true it sends the #request to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|images|robots\.txt|css)
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!