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
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
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