# Routes not working

**URL:** <https://forum.ghost.org/t/routes-not-working/15984>\
**Category:** Developer help\
**Created:** [July 19, 2020, 5:36pm UTC](https://forum.ghost.org/t/routes-not-working/15984 "2020-07-19T17:36:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moeen](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@moeen](https://forum.ghost.org/u/moeen)\
**Post date:** [July 19, 2020, 5:36pm UTC](https://forum.ghost.org/t/routes-not-working/15984/1 "2020-07-19T17:36:04Z")

</div>

Hello I use this yaml route file:

```
routes:
  /about_us/: about_us
  /contact_us/: contact_us
collections:
 /blog/:
    permalink: /blog/{slug}/
    template: index
    filter: primary_tag:blog
 /project/:
    permalink: /project/{slug}/
    template: index
    filter: primary_tag:project

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

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

```

But this way all post with tag **project** omit from the home page, I want to have the posts tagged **project** on the home page, but omit the post have **blog** tag from homepage.  
I want to all post with tag project have a url like:  
[site.com/project/slug](http://site.com/project/slug) , but also shown on homepage. also I have some tags like photography, I want a url like:  
[site.com/project/phootgraphy](http://site.com/project/phootgraphy) , show a list of all post with photography tag.

---

<div class="post-metadata">

**Author:** ![moeen](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@moeen](https://forum.ghost.org/u/moeen)\
**Post date:** [July 19, 2020, 11:20pm UTC](https://forum.ghost.org/t/routes-not-working/15984/2 "2020-07-19T23:20:22Z")

</div>

As I found in ghost docs, post can’t belongs to two collection, I use this route:

```
routes:
  /about_us/: about_us
  /contact_us/: contact_us
  /project/:
    controller: channel
    filter: tag:[project]
collections:
 /blog/:
    permalink: /blog/{slug}/
    template: index
    filter: primary_tag:blog
 
 /:
    permalink: /{slug}/
    template: index

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

```

It doesn’t give me the clean url I need though, if anyone have any other ideas, looking forward to it.  
thanks.

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [July 20, 2020, 2:23pm UTC](https://forum.ghost.org/t/routes-not-working/15984/3 "2020-07-20T14:23:12Z")

</div>

Channels can’t control URL structure, but Collections can. Maybe you want a default collection on the home page and then filtered channels on other pages, such as `/blog/` and `/project/`:

```auto
routes:
  /about_us/: about_us
  /contact_us/: contact_us
  /project/:
    controller: channel
    filter: 'tag:project'
  /blog/:
    filter: 'primary_tag:blog'

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

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

```
