We also encountered issues with some web server software (eg, Tomcat,
Django, Microsoft IIS) handling the colons and the trailing '?' or '??'.
The Apache HTTP server is robust in this regard, and that's what we use
for the
n2t.net resolver.
With Apache HTTP server the colon isn't a problem, and the trailing
question mark can be converted to a regular CGI-friendly query string
with a Rewrite rules. You can then hook it up to any server process that
returns the right metadata. N2T uses the general-purpose rules below.
-John
----
# Detect ? and ?? inflections and map with THUMP compatibility mode.
# One question mark case: ? -> ?thump=0&show=brief&as=anvl/erc
RewriteCond %{THE_REQUEST} \?
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)$ "$1?thump=0&show=brief&as=anvl/erc"
# Two question mark case: ?? -> ?thump=0&show=support&as=anvl/erc
RewriteCond %{QUERY_STRING} ^\?$
RewriteRule ^(.*)$ "$1?thump=0&show=support&as=anvl/erc"