Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Regex-Based aliases

Started by Samuele Masetto 8 years ago · 2 replies · 732 views
8 years ago

Hello,
I tried to add in my site.yaml this route (from documentation:

TXT
routes:
   /another/(.*): '/blog/$1'

If I go to http://mysite.com/another/focus-and-blur I wait until a message "Bad gateway". I tried with various regex but the result is the same.
Why?

Thanks

8 years ago

I am also seeing this, so I'm pretty sure we are following the docs correctly.

I just logged an issue as I need this too and there may be a recently introduced bug.

8 years ago

Are you running PHP5 and/or Nginx @samuele?

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 19 hours ago
1 56 12 hours ago
Support · by gtx, 1 week ago
4 229 2 days ago
Support · by Paul Hodges, 2 weeks ago
13 277 5 days ago
Support · by Anna, 3 weeks ago
9 335 1 week ago
Support · by TomW, 2 weeks ago
4 189 2 weeks ago