Wildcard Redirects

Get even more dynamic with wildcard redirects.

Wildcard Redirects

Kim Koga 05.13.2021

We're excited to announce the release of wildcard redirects. Users can now redirect whole paths such as /about/*/ instead of making redirects for every single one of its immediate subfolders. This allows for more flexibility and power when creating redirects as they're handled dynamically.

What are wildcard redirects?

Wildcard redirects allow for an asterisk (*) to stand-in for a subfolder value. Instead of using a static path to create the redirect, WebEngine will be able to dynamically handle redirects.

Benefits

  • Redirect whole paths. For example, creating a redirect from /about/*/ will redirect /about/ and all of its immediate subfolders.

  • Replace a subdirectory with a wildcard in the middle of a path. For example, creating a redirect from /about/*/team/ will redirect every a single path part between /about/ and /team/.

  • Replace multiple paths. Asterisks can be used to replace multiple paths such as /about/*/*/*/team-members/*/.

wildcard redirect example gif

How does it work?

WebEngine will attempt to render a URL but if that item is not found, WebEngine looks for a redirect for the path you're trying to render. If it finds a redirect, it will then attempt render the corresponding target. If the From path is a wildcard redirect, WebEngine looks for the asterisk wildcard value and dynamically forms paths to the target. In the example below the From path is /about/*/ so everytime a user tries to go to /about/ or any of its immediate subfolders (eg. in /about/team/ /team/ is an immediate subfolder of /about/) will redirect. Click on the image below to expand it.

sample-wildcard-redirect.png

Get more details from our wildcard redirect documentation at Zesty.org.

Try wildcard redirects now

Login to Zesty.io and create some wildcard redirects!

Experience a Headless Content Management System, Join Zesty.io.


Start a Sandbox Now

More from Mindshare: Product Announcements

Placeholder image

Wildcard Redirects

Get even more dynamic with wildcard redirects.

Read Article
Placeholder image

Zesty.io Announces New Teams Feature

By creating teams, you will have a simple way to manage users and their access to instances.

Read Article
Placeholder image

The Zesty.io User Interface Journey

A brief overview of the technology choices which power Zesty.io Instance Manager's past, present and future.

Read Article
Placeholder image

September 2019 Release Notes

A list of updates, releases, and patches in September 2019.

Read Article
Kim Koga photo

Kim Koga

Solutions Engineer, Zesty.io

Experienced writer, editor, and solutions engineer. I love to write instructional documentation to help customers achieve their dreams. Github: https://github.com/kakoga ... Learn More

Speak with an Expert


Chat with Us

To speak with someone in sales and marketing, use the chat popup on this page. To speak with a developer, join https://chat.zesty.io

Exploring content solutions? Looking to replatform?