简体   繁体   中英

Error 404 when trying to deploy react.js website on to github

I am trying to deploy my application into Github, I manage to deploy it but I have encountered a problem that is Failed to load resource: the server responded with a status of 404 .

在此处输入图片说明

As you can see that the web manage to deploy, but all the picture/images are not appearing on my website https://github.com/stevenleesf/UOWMReact << github https://stevenleesf.github.io/UOWMReact/ << website

Wrong link, your image is at

https://stevenleesf.github.io/UOWMReact/images/Logo-WHITE.png

not

https://stevenleesf.github.io/images/Logo-WHITE.png

Which is what you are trying to access:

网络选项卡

It looks like your reference to the images path is missing the UOWMReact directory before images. See the path for your stylesheet below.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM