Another Htaccess Question

Joined: 11/28/2008

I have now solved the problem, so I'll quickly explain the problem and solution

The mission:
Trying to make
http://domain.ext/alpha/intelligence/world/capital/rwanda
actually display the file stored at:
http://domain.ext/intelligence/world/capital.php?site=alpha&capital=rwanda

The error:
A (custom) 404, not found, the page doesn't exist

The code:

CODE
<IfModule mod_rewrite.c>
  RewriteEngine On  
  RewriteCond %{REQUEST_FILENAME} !-d  
  RewriteCond %{REQUEST_FILENAME} !-f  
RewriteRule ^([^/]+)/intelligence/world/capital\/([^/]+)$ intelligence/world/customcapital.php?site=$1&capital=$2
  RewriteCond %{REQUEST_FILENAME} !-d  
  RewriteCond %{REQUEST_FILENAME} !-f  
RewriteRule ^([^/]+)/intelligence/world/capital/([^/]+)\/$ intelligence/world/customcapital.php?site=$1&capital=$2
  </IfModule>

The solution:
delete 404.shtml and all works fine

Joined: 11/28/2008
Okay, now I have another

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
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/intelligence/web/hex-to-rgb/ff0000/, it all works fine and the query string works as expected,
but when I go to http://domain.ext/alpha/intelligence/web/h...-rgb/%23ff0000/ [%23 is the safe-url version of #].
When I

QUOTE
echo $_SERVER['QUERY_STRING'];

, I get

QUOTE
site=rwanda&value=

without a value.

Any ideas?