Okay, now I have another question.
I've added the code:
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
, I get
without a value.
Any ideas?
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:
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