Mod_rewrite – CSS, JS and Images not working

it’s my first time I am asking a Question here.
I have a problem with mod_rewrite.

I have the following filesystem structure:


Now I tried to redirect my php Page to an html file via mod_rewrite.
It works fine, my .htaccess looks like that:

RewriteEngine on  
RewriteBase /site_new/  
RewriteRule ^(.*)/(.*).html$ hallendetails.php?id=$1&halle=$2 [L]  

The orignial url is:


The “new” url then is:


Now all my CSS, JS and Image files are broken.
They are included like that:
type="text/css" href="stylesheets/layout.css"

But after redirecting they are searched in


I think I need a RewriteCond, but I don’t know how to write it. I tried lots of ways, but I don’t get it.

Please help!

Source: css

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.