URI interface to web testing tools

description:

taking Brian Kelly's A URI interface to web testing tools as a starting point, I made a small modification - which Brian has since mentioned as a useful refinement - and implemented it on this very site, for a laugh.

the example from the article suggests the following syntax to enable simple HTML validation:

RewriteRule /(.*),validate http://validator.w3.org/check?uri=http://www.foo.ac.uk/$1 [R=301]

taking advantage of the server's environment variables, which are available to the mod_rewrite module, I now have the following in my Apache configuration:

RewriteRule ^(.*),html http://validator.w3.org/check?outline=1&verbose=1&ss=1&uri=http://%{HTTP_HOST}/$1 [R=301]
RewriteRule ^(.*),css http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http://%{HTTP_HOST}/$1 [R=301]
RewriteRule ^(.*),wcag http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=2&url1=http://%{HTTP_HOST}/$1 [R=301]
RewriteRule ^(.*),links http://validator.w3.org/checklink?check=Check&hide_type=all&summary=on&uri=http://%{HTTP_HOST}/$1 [R=301]

try it for yourselves: go to any page on this site and add a comma, followed by html,css,wcag or links ... and you should be taken directly to the relevant validation service's results for that page. sometimes, the simplest ideas are the best, and i might just make this modification to the servers at work.

completed:
04/08/2004
modified:
06/08/2004