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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Regex-Based aliases

Started by Samuele Masetto 8 years ago · 2 replies · 644 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 Thomas, 1 week ago
2 54 11 hours ago
Support · by Anna, 3 days ago
2 60 14 hours ago
Support · by Justin Young, 15 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago