admin管理员组

文章数量:1130349

I'm aware that my question is a basics, but still I'm struggling.

I don't understand why my link <a href="Articles/every_ethic_without_dead_end_is_utilitarian.html"> doesn't work (Your file couldn’t be accessed - ERR_FILE_NOT_FOUND error) while:

  • the HTML file containing this link is at the root of the website folder (it's index.html)
  • Articles/every_ethic_without_dead_end_is_utilitarian.html exists indeed (starting from the root of the website folder)

My file tree is:

├── drwxrwxr-x Articles
│   └── -rw-rw-r-- every_ethic_without_dead_end_is_utilitarian.html
└── -rw-rw-r-- index.html

According to this page (for example) it should work but it still doesn't.

And I've got the same problem for the CSS files and the icon file: it works with absolute paths but not with relative ones.

I'm aware that my question is a basics, but still I'm struggling.

I don't understand why my link <a href="Articles/every_ethic_without_dead_end_is_utilitarian.html"> doesn't work (Your file couldn’t be accessed - ERR_FILE_NOT_FOUND error) while:

  • the HTML file containing this link is at the root of the website folder (it's index.html)
  • Articles/every_ethic_without_dead_end_is_utilitarian.html exists indeed (starting from the root of the website folder)

My file tree is:

├── drwxrwxr-x Articles
│   └── -rw-rw-r-- every_ethic_without_dead_end_is_utilitarian.html
└── -rw-rw-r-- index.html

According to this page (for example) it should work but it still doesn't.

And I've got the same problem for the CSS files and the icon file: it works with absolute paths but not with relative ones.

本文标签: LinksCSS and icon require absolute paths in HTML (relative paths not working)Stack Overflow