In htaccess with mod_rewrite, how can I read the value of a cookie and then add that value to the URI?
For example, if a cookie named "foo" is set with a value of "bar", I need htaccess to redirect to:
example.com/?foo=bar
or any variation of that URL:
example.com/folder/stuff/things/?foo=bar