ERR_ABORTED 404 error #23616
-
My site is running well on Live Server while opened in VSC, but when I published it on GitHub Pages it runs without CSS files. When I opened an inspector I found this ERR_ABORTED 404 error in Console: This is the reason why my CSS file does not work on GitHub Pages. But it works well on Live Server. What should I do? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You’re using an absolute path for the CSS file:
SingingFoot/ptakh/blob/04599b4361230fe5aa6812072694ff7e1eddf83b/index.html#L7 That breaks because your page isn’t at the root of the server. Change it to a relative URL (without the leading |
Beta Was this translation helpful? Give feedback.
-
Thanks! That helped! |
Beta Was this translation helpful? Give feedback.
You’re using an absolute path for the CSS file:
SingingFoot/ptakh/blob/04599b4361230fe5aa6812072694ff7e1eddf83b/index.html#L7