Im trying to do a mod_rewrite.
I currently have a script that relies on the GET value to retrive data from a database.
however when I do a rewrite, it does not get the results from the database.
RewriteRule ^(.*)/$ /i/profile.php?id=$1
All the images also seem to be broken on the rewrite.
Your mod_rewrite code should provide i/profile.php with the $_GET array with key of id.
The reason for your images (not to mention js, css, etc., files) is that you're changing the directory level with your redirection. See Missing Support Files in my signature's tutorial for workarounds.
This topic is now closed. New replies are no longer allowed.