mod_rewrite & ampersand
hello,
I need something like that:
example.com/a&b/ -> example.com/index.php?x=a%26b
or
example.com/a%26b/ -> example.com/index.php?x=a%26b
but when I use this rule:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]*)/$ index.php?x=$1 [L]
I get:
example.com/index.php?x=a&b
there is wrong value of x.
I searched in history and googled but couldn`t find solution.
I think that it must be possible. Anyone now how to do that???
Thanks for any help
|