Re: [us...@httpd] mod_rewrite, passing GET variables forward

2009-01-11 Thread Kae Verens
Bob Ionescu wrote: 2009/1/11 Kae Verens : I want to rewrite /foo?bar=red to /index.php?page=foo&bar=red I try it with this, but it does not work: RewriteRule ^(.*)\?(.*)$ /index.php?page=$1&$2 [L] The query string is not part of the rule-patern as described in the manual. You're lookin

Re: [us...@httpd] mod_rewrite, passing GET variables forward

2009-01-11 Thread Bob Ionescu
2009/1/11 Kae Verens : > I want to rewrite /foo?bar=red to /index.php?page=foo&bar=red > I try it with this, but it does not work: > RewriteRule ^(.*)\?(.*)$ /index.php?page=$1&$2 [L] The query string is not part of the rule-patern as described in the manual. You're looking for the QSA flag to app

[us...@httpd] mod_rewrite, passing GET variables forward

2009-01-11 Thread Kae Verens
hi all, I want to rewrite /foo?bar=red to /index.php?page=foo&bar=red I try it with this, but it does not work: RewriteRule ^(.*)\?(.*)$ /index.php?page=$1&$2 [L] however, if I instead use an ampersand: RewriteRule ^(.*)\&(.*)$ /index.php?page=$1&$2 [L] I can rewrite /foo&bar=red to /index.php?p