Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Simple page redirect

Started by Muut Archive 12 years ago · 2 replies · 468 views
12 years ago

Is it possible to do a simple page redirect based on the content of a twig tag or header?

E.g. If I have the page:

TXT
mysite.com/promo

On that page, I'd like to put a tag to redirect that to:

TXT
mysite.com/a-page-with-much-better-seo-value-or-whatever

I was expecting a header tag - redirect: /some-page or a twig tag like this:

TWIG
{% redirect '/some-page' %}

But can't find anything. Is it possible?

Thanks

12 years ago

Perfect thank you! I did search the docs but it didn't show up. I just tested the search again and it did show up ;(

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3042 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago