jaynesh — 2012-01-03T16:32:11-05:00 — #1
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.
dklynn — 2012-01-04T04:33:39-05:00 — #2
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.