# Changed routes.yaml and added home.hbs - still getting 404

**URL:** <https://forum.ghost.org/t/changed-routes-yaml-and-added-home-hbs-still-getting-404/11324>\
**Category:** Themes\
**Created:** [January 12, 2020, 9:26am UTC](https://forum.ghost.org/t/changed-routes-yaml-and-added-home-hbs-still-getting-404/11324 "2020-01-12T09:26:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![libinpage](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/libinpage/32/5808_2.png) [@libinpage](https://forum.ghost.org/u/libinpage)\
**Post date:** [January 12, 2020, 9:26am UTC](https://forum.ghost.org/t/changed-routes-yaml-and-added-home-hbs-still-getting-404/11324/1 "2020-01-12T09:26:29Z")

</div>

Hi! I’ve edited routes.yaml to move my blog to /blog/ subdir and created home.hbs within the template folder. /blog/ seam working. but when I trying to open the root - getting 404.

Here is my Yaml file:

```
routes:
  /: home

  collections:
    /blog/:
      permalink: /blog/{slug}/
      template: index

 taxonomies:
   tag: /tag/{slug}/
   author: /author/{slug}/

```

and here is home.hbs

```
{{!< default}}

```

```
<div class="row">
    
    <div class="content-wrapper content" data-aos="fade-up">
            
        <!-- start: .articles -->
        <div class="articles">
                    
            {{#foreach posts}}
                {{#has tag="bgstyle"}}
                    {{> loop/bg-article}}
                {{else}}
                    {{> loop/default-article}}
                {{/has}}                    
            {{/foreach}}
            
        </div>
        <!-- end: .articles -->
        
        {{pagination}}
    
    </div>

</div>

```

Any ideas?

---

<div class="post-metadata">

**Author:** ![scottie](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/scottie/32/5650_2.png) [@scottie](https://forum.ghost.org/u/scottie)\
**Post date:** [January 13, 2020, 1:25am UTC](https://forum.ghost.org/t/changed-routes-yaml-and-added-home-hbs-still-getting-404/11324/2 "2020-01-13T01:25:10Z")

</div>

Did you create a page with the slug of /home/?

---

<div class="post-metadata">

**Author:** ![libinpage](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/libinpage/32/5808_2.png) [@libinpage](https://forum.ghost.org/u/libinpage)\
**Post date:** [January 13, 2020, 9:22pm UTC](https://forum.ghost.org/t/changed-routes-yaml-and-added-home-hbs-still-getting-404/11324/3 "2020-01-13T21:22:57Z")

</div>

Here is how I solved it:  
routes:  
/:  
template: home  
controller: channel  
filter: author:Ilya \<-- works for me cause I’m the only author.

collections:  
/blog/:  
permalink: /blog/{slug}/  
template: index

taxonomies:  
tag: /tag/{slug}/  
author: /author/{slug}/

---

<div class="post-metadata">

**Author:** ![patghost](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/patghost/32/4859_2.png) [@patghost](https://forum.ghost.org/u/patghost)\
**Post date:** [February 20, 2020, 2:04am UTC](https://forum.ghost.org/t/changed-routes-yaml-and-added-home-hbs-still-getting-404/11324/4 "2020-02-20T02:04:09Z")

</div>

Hi @libinpage thanks for sharing how you’ve solved it.

To clarify, does it mean you have not used a reverse proxy (and all the complexity that comes with that) to achieve this (installing ghost on a subdirectory)?
