如果我无法将 human.txt 文件放在站点根目录中,该将其放置在哪里?
背景
- 我正在为客户构建一个网络应用程序。
- 该应用程序将可供全世界访问,并将被放置在 Web 根目录中的目录(例如,
/my-app
)中。子域名不是一个选择,因为他们不想花钱购买另一个 SSL 证书。 /my-app
是我唯一可以接触的目录(不讲理的IT人员)。- 我正在使用需要归属的图标集。
- 我已经联系了图标集的原始作者,并获得了在
people.txt
文件。 - 我还觉得我应该提一下其他人的工作。这些信息与上述内容相结合可能会占用 20 行,因此考虑到我将提供缩小的标记、CSS,像
humans.txt 这样的单独文件似乎是放置此信息的理想位置。和脚本文件。
问题
因为我不允许将
humans.txt 文件放置在web根目录中,(即使我是,将它放在那里也没有多大意义,因为它仅适用于网站的
/my-app
部分)是否可以执行以下操作:- 创建:
/my-app/ humans.txt
- 位置:
在我的标记中
- 创建:
我将提供严格的 HTML 4.01 和
author
值rel
属性似乎不是该规范中可识别的链接类型。我是否需要做任何额外的事情来定义author
链接类型,或者使用它的行为就足够了吗?
我什至不知道目前是否有任何非蜘蛛工具实际使用此文件,但我想最大程度地减少将来出现问题时无法正常工作的可能性。
Background
- I'm building a web application for a client.
- This app will be accessible to the world and will be placed in a directory (e.g.,
/my-app
) in web-root. A subdomain isn't an option as they don't want to cough up the dough for another SSL cert. /my-app
is the only directory that I'm allowed to touch (unreasonable IT guys).- I'm using an icon set which requires attribution.
- I've contacted the original author of the icon set and have gotten permission to link back to his work in the
THANKS
section of ahumans.txt
file. - I also feel like I should mention some other people's work. This information combined with the above will probably take up a good 20 lines, so a separate file like
humans.txt
seems like an ideal place to put this considering that I'll be serving minified markup, CSS, and script files.
Questions
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
- Create:
I'll be serving strict HTML 4.01 and the
author
value for therel
attribute doesn't seem to be a recognized link type in that specification. Do I need to do anything extra to define theauthor
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为将文件放在应用程序自己的目录中是可以的,因为它澄清了它特定于目录内的内容,而不是您可能在根目录中找到的所有其他内容。
当然,如果 HTML 严格模式下错误为 0 就好了。然而,在这种情况下,您必须决定是否要这样做
但是我不能这个决定适合你;)
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.
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
However I can not make this decision for you ;)