More Htaccess

Joined: 11/28/2008
User offline. Last seen 2 years 31 weeks ago.

Okay, now I have another question.
I've added the code:

QUOTE
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/intelligence/web/hex-to-rgb/([^/]+)\/$ intelligence/web/customhextorgb.php?site=$1&value=$2

to the .htaccess file, but it isn't quite working as I would expect
When I go to: http://domain.ext/alpha/intelligenc.../ff0000/, it all works fine and the query string works as expected,
but when I go to http://domain.ext/alpha/intelligenc...>%23ff0000/ [%23 is the safe-url version of #].
When I

QUOTE
echo $_SERVER['QUERY_STRING'];

it gives

QUOTE
site=alpha&value=

without a value.

If I change %23 to %20 or %41,... (the codes for space or A,...), all works fine, but not with this #.
Anything I can do, or do I have to do work it some other way?
Cheers.

Joined: 11/28/2008
User offline. Last seen 3 years 9 weeks ago.
Have you tried also encoding

Have you tried also encoding the %? So %2523 ? I have read about Apache escaping certain characters.

Paul Davey
Whitford Church
"Everyone who calls on the name of the Lord will be saved." Romans 10:13
"For all have sinned and fall short of the glory of God, and are justified

Joined: 11/28/2008
User offline. Last seen 2 years 31 weeks ago.
Hello.I had ignored /

Hello.

I had ignored / forgotten about this problem for a while, but needed to fit it today.

The solution I came up with was to use a # in the htaccess file (as I didn't need the # at the redirected page)

CODE
RewriteRule ^([^/]+)/intelligence/web/hex-to-rgb/#([^/]+)\/$ intelligence/web/customhextorgb.php?site=$1&value=$2
RewriteRule ^([^/]+)/intelligence/web/hex-to-rgb/([^/]+)\/$ intelligence/web/customhextorgb.php?site=$1&value=$2

This seems to have worked.
I kept the second line for when a # was not included.
Now it's redirected (transparent - back end) to ....?site=alpha&value=ffab00