# Make home to be Subdirectory

**URL:** <https://discourse.gohugo.io/t/make-home-to-be-subdirectory/4345>\
**Category:** support\
**Created:** [October 18, 2016, 6:24am UTC](https://discourse.gohugo.io/t/make-home-to-be-subdirectory/4345 "2016-10-18T06:24:56Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)\
**Post date:** [April 19, 2018, 8:22pm UTC](https://discourse.gohugo.io/t/make-home-to-be-subdirectory/4345/6 "2018-04-19T20:22:36Z")

</div>

> [@DavyDev](#):
>
> Figured out! I did many trial and errors. Kukuku… many are viewing but none are replying. But well… splendid!

But you then failed to mention what exactly you figured out 🙂

In any case, closing the loop; see the solution here:

> [@Run site from subdirectory (in localhost + live web server)](https://discourse.gohugo.io/t/run-site-from-subdirectory-in-localhost-live-web-server/11620/2):
>
> hugo server -b localhost/foo/ Also, in general, setting canonifyURLs = true works better in my experience when dealing with baseURLs with subdirs. There was a recent [thread](https://discourse.gohugo.io/t/baseurl-path-subdir-sometimes-ignored-by-relurl-absurl/11512/3) where @it-gro and I got into indepth analysis of relURL, absURL, canonifyURLs with such baseURLs.

---

_[View the full topic](https://discourse.gohugo.io/t/make-home-to-be-subdirectory/4345)._
