+ 4

Relative paths in html

HTML is case insensitive, but when I use relative paths for the images on my host, it is case sensitive. Is this always the case, or it's because of my host settings? Can I do anything about it? (note: when I test my codes on local host, the relative paths are case insensitive)

9th Apr 2019, 6:54 AM
Mo3n
Mo3n - avatar
1 ответ
+ 2
Windows uses NTFS, which particularly isn't case-sensitive, so image1.png and ImAge1.png is essentially the same file, however most Linux systems use EXT4, which is case-sensitive. So basically that's why when you are running on a local host it will be case-insensitive, but on your webserver file systems, where filenames are case-sensitive, your relative paths needs to be case senstive, so image1.png and ImAge1.png will be 2 separate files on your webserver file system.
9th Apr 2019, 7:48 AM
Nico Engelbrecht
Nico Engelbrecht - avatar