Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Regex-Based aliases

Started by Samuele Masetto 8 years ago · 2 replies · 865 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 webmasterodp, 1 week ago
4 157 6 days ago
Support · by nwhitfield, 1 week ago
2 136 1 week ago
Support · by stell, 3 weeks ago
5 369 2 weeks ago
Support · by gravinator, 1 month ago
5 559 2 weeks ago
Support · by Gravver, 3 weeks ago
6 347 3 weeks ago