Phil Wild did speak thusly:
Hmmm hit a snag how would I expand this rule to capture and convert the following? your.host.name -> YourHostName (works with rule) YOUR.HOST.NAME -> YourHostName (currently not handled) Yo-ur.HOST.name -> YourHostName (currently not handled) effectively the spec would be to take /doc/FQDN (regardless of case presented) and capitaliseing every dot separated word returning/doc/FullyQualifiedDomainName removing any characters other than [A-Z][a-z][0-9]
---------------- End original message. ---------------------If I were to do something like this, I would most likely use the RewriteMap directive to pass the incoming URL to a short Perl script to do the transformation. The stdin file handle presents the program with the request URL and you pass the result back via the stdout file handle.
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritemapSee the section on the page linked above entitled "External Rewriting Program" for details and a skeleton Perl script you can add your processing to.
Dragon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Venimus, Saltavimus, Bibimus (et naribus canium capti sumus) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx