On Tue, Jun 17, 2003 at 03:57:48PM +0200, Elizabeth Mattijsen wrote: > RewriteRule ^/davidhttp://foo.bar.com/?page=publicprofile.php&name=david [R,L]
or possibly even:
> RewriteRule ^/david /?page=publicprofile.php&name=david [R,L] I think you're misunderstanding what I'm doing. Did you read that code attached to the first mail? Should make it clear.
Actually, I missed that and now that I've seen it, I'm not sure I understand.
Suffice to say, it's not specific cases like /david that we want to match. it'd be a general case of "do these cases (eg, does it begin with a '?', is it in the form /.*/.*, ...) match? if so serve directly as Apache and mod_php normally would, otherwise if it's /.* with out another '.' or '/', then take the local bit after the / and redirect to /?page=page.php&name=thelocalbitgoeshere"
Does that make more sense?
Yep, it does.
Could you try this then? (off the top of my hat, without a non-production mod_rewrite enabled apache at my disposal):
RewriteRule ^/(\w+)$ /?page=publicprofile.php&name=$1 [R,L]
Liz