Logo

What are you looking for?

Configure a site

URL rewrite

A rewrite rule allows you to rewrite URLs from a given pattern.

Last updated on 09 Jan, 2026

You can find this feature in the "URL Rewrite" tab of a site's configuration.

This feature can be useful to simplify URLs that are too complex for your users.

Destination path is a RE2 regular expression.

Rewrite rules are all applied in sequence.

Simple use :

Example: reduce /foo-admin-bar to /admin :

Image

With this rule, www.my-website.com/admin will return - without redirection - the content of the page www.my-website.com/foo-admin-bar

 

Advanced use with capture group :

You can use capture groups (regular expression in brackets) to capture fragments of URLs and order them as you want:

Image

Here, the $1 will be substitute by the first capture group (.*).

You can test it in the tester :

Image

 

Identify a rewrite rule in "My Logs":

In "My Logs", you can find a request that has matched a rewrite by an "R" badge.

Image

 

Don't forget to activate the rule with the toggle button!

Did you find this article helpful?
Previous

Expert mode

Next