Rewrite Help

Topics: User Forum
Oct 15, 2007 at 7:26 PM
I have an image gallery server that was using query strings to help with SEO, but am wanting to rewrite the URL to be both more readable and remain as a good SEO URL.

I start with subdomain.domain.com/details.php?Name=Someone&EID=1

Here are the rules that I use to handle the change, and according to the logfile, it shows to work, but I end up getting a 404 error.
{RewriteRule ^/details.php\?Name=(\D)&EID=(\d)$ /$2/$1/details.php L,U
RewriteRule ^/details.php\?Name=(\D%\d\D)&EID=(\d)$ /$2/$1/details.php L,U}

Obviously from the rules I would end up with subdomain.domain.com/1/Someone/details.php

Why would I be getting a 404 error and am I even able to do this and keep everything on track?