To be relative to the root directory, just start the URI with a /
<link type="text/css" rel="stylesheet" href="https://stackoverflow.com/style.css" />
<script src="/script.js" type="text/javascript"></script>
To be relative to the root directory, just start the URI with a /
<link type="text/css" rel="stylesheet" href="https://stackoverflow.com/style.css" />
<script src="/script.js" type="text/javascript"></script>