php - css disapears when trying to create clean url's -


i'm trying implement clean url's website, i've runned problem. when i'm trying load default url feks: www.example.com, works should, when try changing this: www.example.com/home/, loads except images , css.

just testing html:

<html>   <head>     <meta charset="utf-8">     <title></title>     <link href="css.css" rel="stylesheet" type="text/css">   </head>   <body>      <p>just example text</p>   </body> </html> 

my htaccess file:

 <ifmodule mod_rewrite.c>   rewriteengine on   rewritecond %{request_filename} !-f   rewritecond %{request_filename} !-d   rewriterule ^ index.php [l]  </ifmodule> 

you must use absolute links:

<link href="http://www.example.com/css.css" rel="stylesheet" type="text/css"> 

or add in <head>:

 <base href="http://www.example.com/"> 

or

 <base href="/"> 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -