On 12/23/10 10:30 AM, Andrea Messina wrote:
It's an other Ostatus-compatible software that I'm writing. It is for
Webfinger lookup.

In a nutshell,
from the uri:

http://domain/myblog/webfinger?uri=http://domain/myblog/userx/profile

a would like to rewrite it into:

http://domain/myblog/webfinger/xrd.php?uri=http://domain/myblog/userx/profile.

How may I obtain this result?

If I use the aforementioned rule( RewriteRule ^webfinger?uri=(.*)$
webfinger/xrd.php?uri=$1 [L,QSA] ), i will read a $_GET['uri']
= http:/domain/myblog/userx/profile with only a single "/".

This might be mod_rewrite over-normalizing things for you. It looks like you don't actually need to change the query string here at all, so try leaving it off the rule and let it pass directly; that might avoid it getting munged.

Beyond that, check with Apache documentation and support forums, I guess; there can be some weird path munging.

-- brion
_______________________________________________
StatusNet-dev mailing list
StatusNet-dev@lists.status.net
http://lists.status.net/mailman/listinfo/statusnet-dev

Reply via email to