Forum

Thread tagged as: Question, Problem

help with routes (only works for numbers)

I have a URL

https://localhost/style/S50506/

shows 404 not found, instead of opening a page.

but I also have

https://localhost/style/50506/

and this opens perfectly fine. only different is "S" in front of the number (so i am assuming that postslug is only matching if it is numeric).

Following route is already added:

style/[slug:postslug]

I don't know what is wrong. can you help?

sawan ruparel

sawan ruparel 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

I would avoid using uppercase in your URLs, does it work if lowercase?

lol. magically, lower case works.

I will fix the code to avoid uppercase.

thank you