URL friendly does not load css when using . php

Asked

Viewed 152 times

0

Good staff I am learning url friendly, but I came across an error that I can not find solution, if I access localhost/farmacia/contato the page is normally loaded without any problem, but when access localhost/farmacia/contato.php my css does not load gets only pure HTML.

OBS# this problem applies to all pages of the system.

RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1
  • put as this the css link, probably Voce should use the absolute link instead of the relative

  • In the case of the absolute localhost/farmacia/assets/estilo.css

  • You’re doing it this way?

  • yes, all me head where it has the css and js ta with the absolute path.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.