I use .htaccess to rewrite urls. See the example below :
my folder arborescence is like that :
- mysite (folder)
- css (folder)
- style.css
- mypage.php
- .htaccess
- css (folder)
when i call http://localhost/mysite/mypage/myid it is redirected to http://localhost/mysite/mypage.php?id=myid
The problem then is that it doesn't seem to call my css which is :
<link href="css/style.css" rel="stylesheet" type="text/css" />
The content of my .htaccess is :
RewriteEngine on
RewriteBase /mysite
RewriteRule ^mypage/([^/]*) mypage.php?id=$1
Thanks in advance
Edit :
I tryied with the solution :
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
I still cannot get the css called :/
Edit 2 :
Ok i could get it work calling my css like this :
<link href="/mysite/css/style.css" rel="stylesheet" type="text/css" />
Looks like i also have to call all my images i have in the html using the path "/mysite/"