htmlauthorrelcredits

Where to place the humans.txt file if I cannot put it on the site root?


Background


Questions


  1. Since I'm not allowed to place a humans.txt file in web-root, (and even if I was, it wouldn't really make much sense to put it there as it only applies to the /my-app portion of the site) is it acceptable to do the following:

    • Create: /my-app/humans.txt
    • Place: <link rel="author" href="//example.com/my-app/humans.txt"> in my markup
  2. I'll be serving strict HTML 4.01 and the author value for the rel attribute doesn't seem to be a recognized link type in that specification. Do I need to do anything extra to define the author link type, or is the act of using it enough?

I don't even know if there are any non-spider tools that actually use this file at the moment, but I'd like to minimize the chance of this not working in the future when something does come along.


Solution

    1. I think it is ok to put the file in the applications own directory, since it clarifies that it is specific to the content inside the directory and not all the other stuff you might find in the root directory.

    2. Of course it would be nice if there are 0 errors in HTML strict mode. However this is one situation where you have to decide if you want to

      • keep up with the standard and not insert the meta tag (maybe put it in a comment or as a real link in a credits page)
      • ignore the standard, because the standard is nice but not the holy grail (there are quite worse errors you can make than that)
      • chose another Doctype, which allows you to use the meta tag you want, but to test again if all browsers render the new Doctype correctly

    However I can not make this decision for you ;)