robots.txt的行尾格式重要吗?


Answers:


8

没关系 根据规格:

该文件由一个或多个记录组成,这些记录由一个或多个空行(以CR,CR / NL或NL终止)分隔。

  • CR =回车(即\ r)
  • CR / NL =回车/换行(即\ r \ n)
  • NL =新行(即\ n)

这意味着您可以使用\r\n,或者\r\n它将起作用。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.