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 · 766 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 Paul Hodges, 4 weeks ago
19 485 5 days ago
Support · by Lauw, 7 days ago
2 99 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago