W3C

Redirecting to https on all of www.w3.org

W3C’s main web site www.w3.org has been available via https for over a decade, but until now we have not been redirecting all requests to https as is commonly done on most other sites.

The primary reason for this is that we wanted to avoid causing issues for software requesting machine-readable resources from www.w3.org such as HTML DTDs, XML Schemas, and namespace documents.

We believe enough time has passed for most such software to have been updated to handle redirects and https, so we are planning to start redirecting all requests received over http to https within a month or two.

In order to discover any potential remaining issues and to give some advance notice in case there are software systems that still have issues with redirects and https, we plan to conduct some limited tests before fully deploying this change to our site, where we redirect all http traffic to https for a few hours at a time.

The first such test is planned for Monday August 1, for 8 hours starting at 14:00 UTC (14:00 UTC to 22:00 UTC)

If you have any questions or comments about this planned change, please post a comment here or contact us by email at sysreq@w3.org

9 thoughts on “Redirecting to https on all of www.w3.org

    1. The XSD file is still being returned:

      $ curl -s -i https://www.w3.org/2001/xml.xsd
      HTTP/2 200
      last-modified: Wed, 21 Jan 2009 22:06:40 GMT
      cache-control: max-age=7776000
      expires: Thu, 27 Oct 2022 06:50:54 GMT
      content-type: application/xml

      <?xml version='1.0'?>
      <?xml-stylesheet href="../2008/09/xsd.xsl" type="text/xsl"?>
      <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns ="http://www.w3.org/1999/xhtml"
      xml:lang="en">

      <xs:annotation>
      <xs:documentation>
      <div>
      <h1>About the XML namespace</h1>
      [...]

      It might look like a web page due to the XSL stylesheet:

      $ curl -s -i https://www.w3.org/2008/09/xsd.xsl
      HTTP/2 200
      date: Mon, 01 Aug 2022 18:39:04 GMT
      last-modified: Fri, 04 May 2012 01:28:13 GMT
      content-length: 31910
      content-type: application/xslt+xml

      <!DOCTYPE xsl:stylesheet [
      <!--*
      <!DOCTYPE xsl:stylesheet PUBLIC 'http://www.w3.org/1999/XSL/Transform'
      '../../People/cmsmcq/lib/xslt10.dtd' [
      *-->
      [...]

      xsd.xsl: format an XSD schema document for simple display in a Web browser.

      1. I think the issue then is the https redirect itself, and changing the references to https causes its own issues. Getting the error “The namespace of element ‘schema’ must be from the schema namespace, ‘http://www.w3.org/2001/XMLSchema’.”

  1. +1 our schema also broke with this change. We are using javax.xml.validation.SchemaFactory with XMLConstants.W3C_XML_SCHEMA_NS_URI, on Java 8.

Leave a Reply

Your email address will not be published. Required fields are marked *