Is there a way to get back references for Rewrite Conditions to be passed to all subsequent rewrite rules?
Here's an example:
RewriteEngine On
RewriteCond %{HTTP_HOST} (bob).localhost [NC]
RewriteRule ^/where/? /index.php\?user_name=%1
RewriteRule ^/who/? /index.php\?user_name=%1
In this example I would expect this behavior:
http://bob.localhost/where => http://bob.localhost/where/index.php?user_name=bob
http://bob.localhost/who => http://bob.localhost/who/index.php?usern_ame=bob
But for the second rule I receive http://bob.localhost/who/index.php?user_name= instead.
I've tried this on several different distro's using Apache 2.2.17