Redirects
Send visitors and search engines from an old address to a new one, for everyone or only for some visitors.
A redirect sends everyone who opens an old address to a new one. Use it when a page has moved or been renamed, or when you moved the site from another engine and want to keep the links people find in search and chats.
You need the admin.redirects.view permission to see the list and admin.redirects to change it.
Add a redirect
Fill in the addresses
In "Old address", enter the path to redirect from, for example /rules-old. In "New address", enter a path on this site (/rules) or a full external address (https://discord.gg/...).

Choose "For how long"
"Permanent" (code 301) tells search engines the page has moved, and the new page inherits the old one's ranking. "Temporary" (code 302) fits when you plan to put things back. If in doubt, keep "Temporary": browsers remember a 301 and keep sending the visitor on even after you delete the redirect.
After saving you get a "Redirect saved." notice with an "Open" button. It opens the old address, so you can see right away where it leads.
When you change a page's address in AdminPages, the admin panel offers a redirect from the old address to the new one, with the form already filled in.
How addresses are matched
The old address is matched literally, as a path from the site root. The path /shop also matches /shop?ref=vk: query parameters don't get in the way. If you enter the path with parameters, /shop?ref=vk, the rule fires only on that exact address, and a plain /shop passes by.
Write non-Latin characters as they are: /новости matches the address the browser sends percent-encoded. After ?, a + means a space, and a literal plus is written as %2B.
A redirect fires only when a page is opened normally. Form submissions (POST) and the site's background requests are never redirected.
Conditional redirects
Turn on "Only in some cases (conditions)" and the redirect stops firing for everyone. For example, you can send visitors who came from Discord to a welcome page and leave everyone else where they are: the condition "Referer" → "Contains" → discord.com.
Conditions are collected into groups. Every condition in a group has to match, and the redirect fires when any group matches. So "IP address equals 203.0.113.5 and Language equals en" is one group, while "either from this IP or in English" is two groups with one condition each.
| Type | What is compared |
|---|---|
| IP address | the visitor's address |
| Cookie | the value of the cookie with the given name |
| Referer | the page the visitor came from |
| HTTP method | GET, HEAD and so on |
| User agent | the browser string |
| HTTP header | the value of the header with the given name |
| Language | the visitor's language |
| Query parameter | the value of the address parameter with the given name |
Operators: "Equals", "Not equals", "Contains", "Not contains". For Cookie, HTTP header and Query parameter, a "Name" field appears next to the value.
Fill in the value for every condition, or remove the unused rows.
An empty condition would widen the rule to every visitor, so such a redirect is not saved. Fill in the value or remove the row with "Remove condition".
The Needs attention tab
The tab only appears when something is wrong with a rule. Each rule's state is shown in the "Status" column:
| State | What is wrong |
|---|---|
| Path is not rooted | rules-old instead of /rules-old. Such a rule never matches |
| Points to itself | the old and new address are the same, the browser will loop |
| Redirect loop | the chain of redirects comes back to the same address |
| Never runs | an earlier rule on the same address has no conditions, so this one is never reached |
| Overrides a page | a real page lives at the old address, and the redirect replaces it |
Troubleshooting
For any other message, use the error lookup.
You changed a redirect, but the site still goes the old way
The site caches the rule list for up to an hour. The admin panel clears it on every save, but if rules were changed some other way (through the API or the database), click "Clear cache" above the list. If only your browser goes the old way while another one is right, it's a remembered 301: open the address in a private window.
"The old and the new address cannot be the same." means you need to change one of the fields. Each address can be up to 255 characters.
