Hi.
You need to be very careful with images, and other resource paths, when using mod_rewrite.
What you need to keep in mind is, the images are requested separately.
So, if a user requests:
http://example.com/home/
And you have a rule:
RewriteRule ^home/?$ index.php
The request will be routed to:
http://example.com/index.php
However, any additional resources, like images, in that page will
not be rerouted by that rule.
Meaning, if that page includes an <img> at:
images/header.jpg
The request will be:
http://example.com/home/images/header.jpg
Which will
not be rerouted by your original rewrite rule.
If you want the image path to be re-written as well, you need to add a rewrite rule for that to. (Or come up with one that covers both)
A simpler way, as rayckins suggested, would be to use absolute URLs for all resource links.
Meaning:
/images/header.jpg
Rather than:
images/header.jpg
The added / to the link simply means that it should start at the web-root, rather than the current location.