I'd say that your two obvious options are to use references that Hunchentoot has been configured to resolve, or to configure Hunchentoot to handle the urls that you want to use.

In case that wasn't clear enough: the mechanisms that you use to tell Hunchentoot where to find "/test" will not automatically figure out what you mean by "/~/mystyle.css".

On 09 Mar 2014, at 21:10 , Faruk S. Can <farukscan@gmail.com> wrote:

maybe comic enough but i cannot serve an html file that is linked to css file.

test.html

<html>
<head>
<link rel="stylesheet" type="text/css" href="~/mystyle.css">
</head>

<body>
asdf
</body>

</html>

mystyle.css

body
{
background-color:tan;
}

this html is rendered when i double click it.
but i cannot serve it with style aded.
alt console says:
127.0.0.1 - [2014-03-09 22:09:46] "GET /test HTTP/1.1" 200 114 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9"
127.0.0.1 - [2014-03-09 22:09:46] "GET /~/mystyle.css HTTP/1.1" 404 360 "http://localhost:5050/test" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9"

What should i do?