I have a small problem with rewriting urls. I have this really simple rewrite rule:

```
RewriteEngine on
RewriteRule ^(home|apps|news|research|contribute)/$ index.php?page=$1

```

However, whenever I call my website like this, e.g. website.net/home/ it correctly rewrites the rule and shows the corresponding page but also messes up the css and images since it rewrites the urls for them since they are relative paths in the code.
Is there any easy way to prevent this from happening?