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

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?

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

1 Like

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}/

1 Like

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)?