May be this should work :
<link rel="stylesheet" href="css/main.css">
<script src="js/main.js"></script>
the below should works:
<link rel="stylesheet" href="../css/main.css">
<script src="../js/main.js"></script>
Add two dots instead of one.
For more information read: https://www.w3schools.com/html/html_filepaths.asp
It should be work
<link rel="stylesheet" href="/www/public/css/main.css" type="text/css">
<script type="text/javascript" src="/www/public/js/main.js"></script>