GitHub user StickyChannel92 edited a discussion: Referencing CSS, images and other files from parent or subparent directory for a website.
I develop a website on NetBeans, and unfortunately, I run into the error where if I make a child page, such as site.com/blog, my CSS is located in site.com/server/default.css, and the images are stored in site.com/files/images, they throw an ERR_EMPTY_RESPONSE and fail to load properly. I can load these files properly on the live website using the EXACT SAME CODE (stickychannel-92.com/roadstuff), but I cannot do so on NetBeans. The front page loads properly with the JS code from the same server directory, but it doesn't work on child pages. ``` <head> <title>Road Stuff - StickyChannel92</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> <link rel="icon" type="image/x-icon" href="/files/images/favicon.ico"> <link rel="canonical" href="https://stickychannel-92.com/roadstuff"> <link rel="stylesheet" href="/server/default.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.3/jquery-ui.js"></script> <script src="/server/nav.js"></script> <script src="/server/shieldmaker.js"></script> </head> ``` This works properly on my live website, but not in NetBeans. How come, and how can I fix it? GitHub link: https://github.com/apache/netbeans/discussions/8548 ---- This is an automatically sent email for notifications@netbeans.apache.org. To unsubscribe, please send an email to: notifications-unsubscr...@netbeans.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists