Simple rule rewriting image paths?

Oh, the strange things mod_rewrite does!

Simple rule rewriting image paths?

Postby Draxys » Thu Feb 03, 2005 8:22 am

Heh, I have the following rule set up:
Code: Select all
<IfModule mod_rewrite.c>
   Options +FollowSymlinks
   RewriteEngine on
   RewriteRule dream(s)?/([0-9]+) http://localhost/dreams.php?dream=$2
</IfModule>


But when i go to localhost/dreams/528, none of the images or css work because it's looking for them as localhost/dreams/image.jpg. How can I prevent this?
Draxys
 

Postby Caterham » Fri Feb 04, 2005 2:15 am

Hi,

this question has already been answerd on viewtopic.php?p=1902#1902

Bob
Caterham
 
Posts: 690
Joined: Fri Dec 10, 2004 1:30 pm


Return to Idiosyncrasies

Who is online

Users browsing this forum: No registered users and 3 guests

cron