# Category slugs starting with numbers return 404 in a subfolder install

**URL:** https://meta.discourse.org/t/category-slugs-starting-with-numbers-return-404-in-a-subfolder-install/116608
**Category:** Feature
**Tags:** subfolder
**Created:** [May 1, 2019, 7:37pm UTC](https://meta.discourse.org/t/category-slugs-starting-with-numbers-return-404-in-a-subfolder-install/116608 "2019-05-01T19:37:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kevincolten](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kevincolten/32/120986_2.png) [@kevincolten](https://meta.discourse.org/u/kevincolten)
#### Post date: [May 1, 2019, 7:37pm UTC](https://meta.discourse.org/t/category-slugs-starting-with-numbers-return-404-in-a-subfolder-install/116608/1 "2019-05-01T19:37:09Z")

</div>

Any category with a slug that starts with a number returns a 404 if visited directly, but works find if navigating there from the homepage. If relevant, this is a discourse instance nested in a subdirectory `/forum`.

[https://austincodingacademy.com/forum/c/123-graduate-projects](https://austincodingacademy.com/forum/c/123-graduate-projects) =\> doesn’t work

[https://austincodingacademy.com/forum/](https://austincodingacademy.com/forum/) =\> click on Graduate Projects =\> works

Here is the relevant parts of my `app.yml`

```yaml
- replace:
     global: true
     filename: /etc/nginx/conf.d/discourse.conf
     from: proxy_pass http://discourse;
     to: |
        rewrite ^\/(.*)$ /forum/$1 break;
        proxy_pass http://discourse;
  - replace:
     filename: /etc/nginx/conf.d/discourse.conf
     from: etag off;
     to: |
        etag off;
        location /forum {
           rewrite ^\/forum\/?(.*)$ /$1;

```

Any thoughts? Might this be related to [Slugs that start with numbers parsed as IDs](https://meta.discourse.org/t/slugs-that-start-with-numbers-parsed-as-ids/50258)?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 1, 2019, 11:28pm UTC](https://meta.discourse.org/t/category-slugs-starting-with-numbers-return-404-in-a-subfolder-install/116608/2 "2019-05-01T23:28:07Z")

</div>

The easiest workaround is to avoid leading numbers in your categories.
