CARVIEW |
Select Language
HTTP/2 200
content-location: rewrite_tools.html.gzip
vary: negotiate,accept-encoding
tcn: choice
last-modified: Sat, 12 Jul 2025 08:31:37 GMT
etag: "691-639b74151c631;6360543033af7
content-length: 1681
cache-control: max-age=10800
strict-transport-security: max-age=15552000
content-security-policy: default-src 'self'; img-src 'self' data: *.twitter.com *.twimg.com; style-src 'self' *.twitter.com; script-src 'self' *.twitter.com *.twimg.com; frame-src data: *.twitter.com www.youtube.com; frame-ancestors 'none'; report-uri https://mnot.report-uri.com/r/d/csp/enforce
link: ; rel=preload;as=font;type=font/woff2;crossorigin=anonymous;nopush, ; rel=preload;as=fetch;crossorigin=anonymous;nopush
link: ; rel=preload;as=font;type=font/woff2;crossorigin=anonymous;nopush
content-type: text/html; charset=utf-8
content-encoding: gzip
content-language: en
date: Fri, 10 Oct 2025 18:41:04 GMT
server: Apache
Emulating W3C ,tools with mod_rewrite
mark nottingham
recent entries all entries feed
Hi, I’m Mark Nottingham. I write about the Web, protocol design, HTTP, Internet governance, and more. This is a personal blog, it does not represent anyone else. Find out more.
Comments? Let's talk on Mastodon. @mnot@techpolicy.social
Emulating W3C ,tools with mod_rewrite
Sunday, 23 October 2005
I don’t know if this has already been done (it’s not exactly rocket science), but for the benefit of those who want to emulate the W3C’s cool ,tools functions with mod_rewrite;
# tools
RewriteRule ^(.*),validate https://validator.w3.org/check?uri=https://%{HTTP_HOST}/$1 [L,R]
RewriteRule ^(.*),checklink https://validator.w3.org/checklink?uri=https://%{HTTP_HOST}/$1 [L,R]
RewriteRule ^(.*),rchecklink https://validator.w3.org/checklink?recursive=on&uri=https://%{HTTP_HOST}/$1 [L,R]
RewriteRule ^(.*),text https://cgi.w3.org/cgi-bin/html2txt?url=https://%{HTTP_HOST}/$1 [L,R]
RewriteRule ^(.*),cssvalidate https://jigsaw.w3.org/css-validator/validator?usermedium=all&uri=https://%{HTTP_HOST}/$1 [L,R]
RewriteRule ^(.*),links https://www.google.com/search?as_lq=https://%{HTTP_HOST}/$1 [L,R]
RewriteRule ^(.*),blinks https://blogsearch.google.com/blogsearch?scoring=d&q=link:https://%{HTTP_HOST}/$1 [L,R]
RewriteRule ^(.*),cacheability https://www.ircache.net/cgi-bin/cacheability.py?descend=on&query=https://%{HTTP_HOST}/$1 [L,R]
For example, you can validate this page.
3 Comments
ingo said:
Sunday, October 23 2005 at 2:59 AM
ingo said:
Sunday, October 23 2005 at 3:00 AM
Mark Nottingham said:
Sunday, October 23 2005 at 9:33 AM