# Relative URL and BaseURL

**URL:** <https://talk.jekyllrb.com/t/relative-url-and-baseurl/2051>\
**Category:** Help\
**Created:** [August 13, 2018, 9:09am UTC](https://talk.jekyllrb.com/t/relative-url-and-baseurl/2051 "2018-08-13T09:09:22Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![jeff.milton](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/jeff.milton/32/1922_2.png) [@jeff.milton](https://talk.jekyllrb.com/u/jeff.milton)\
**Post date:** [September 28, 2019, 12:19pm UTC](https://talk.jekyllrb.com/t/relative-url-and-baseurl/2051/11 "2019-09-28T12:19:48Z")

</div>

> [@ashmaroli](#):
>
> {{ site.baseurl }}

I ran across this thread trying to solve a similar problem. I don’t have a github site yet, just doing everything locally, and my baseurl = “/mish”, so my URLs are `http://localhost:4000/mish/`, but I do not want a baseurl, or rather, I want the baseurl to be “/”, but then the pages can’t find any images, css, etc, which I do not understand because the server is actually running in the “/mish” directory, so the actual baseurl IS “/”.

Is the baseurl allowed to be just “/” or even “” ?

So, with baseurl= “/mish”, if I have the link:

` [here]({% post_url /knowledge/2018-01-29-KN-337 %})`

is breaks because it is missing the baseurl.

If I use

[here]({{ site.baseurl }}{% post\_url /knowledge/2018-01-29-KN-337 %})

It works, but if I set baseurl=“/”, everything breaks.

What am I missing?

---

_[View the full topic](https://talk.jekyllrb.com/t/relative-url-and-baseurl/2051)._
