Skip to Content

301 redirects in Odoo: rename a page without losing your visitors (Online, Odoo.sh, self-hosted)

November 24, 2026 by
301 redirects in Odoo: rename a page without losing your visitors (Online, Odoo.sh, self-hosted)

You are rebuilding your website in Odoo, or simply renaming a few pages, and the old addresses still linger in your customers’ bookmarks, in your emails and in Google’s results. On Odoo Online there is no server and no .htaccess file to redirect them. Good news: Odoo does it itself, in a simple list, whether you are on Odoo Online, Odoo.sh or self-hosted. Here is where to find it in Odoo 19 and 20, what each redirect type does and, above all, what it cannot do.

1. Why a renamed page must be redirected

When an address disappears without a redirect, visitors who follow it land on a 404 page. Links from other websites to that page lead nowhere, and Google eventually drops the address from its index without knowing another page replaced it.

A 301 redirect tells browsers and search engines that the page has moved for good. Google documents it as a permanent redirect, which helps it carry the old address over to the new one. It does not push a page up the results: it keeps you from losing what you already had. That is all, and during a redesign that is already a lot.

💡 Key takeaway

A redirect does not win rankings: it protects the visits and links you already had. Plan it before the new version goes live, not three months later.

2. The simplest way: rename the page and tick a box

For a page built with the website editor, open it and go to Website > Site > This page > Properties. As soon as you change the Page URL field, Odoo shows the “Redirect Old URL” option. Switch it on and choose the Type: 301 (the default) or 302. On saving, Odoo creates the rule sending the old address to the new one by itself. The screen is the same in Odoo 19 and Odoo 20.

For your blog posts and product pages, you often have nothing to do. Their address contains a number (for example /blog/actualites-2/mon-article-7). If you change the title, Odoo recognises the old address from that number and redirects with a 301 to the new one. I checked this on 24/11/2026 on an Odoo 19 test database: the old title, and even the address reduced to the number alone, lead to the right page.

💡 Key takeaway

Editor pages: tick “Redirect Old URL” when renaming them. Posts and products: their number is enough, as long as you do not delete the record and recreate it.

3. The redirect list: where it hides

All rules, those created by the tick box as well as those entered by hand, live in Website > Configuration > Redirects. The Configuration menu only shows for administrators (Settings access right). After that, it depends on your version:

  • Odoo 19: the Redirects entry only appears in developer mode. Without it, you will not see it, even as an administrator.
  • Odoo 20: the restriction is gone, the entry is visible in normal mode.

Each rule has a name, an Action (the redirect type), a URL from and a URL to. If you run several websites, a Website field lets you restrict the rule to one of them.

The Odoo 19 trap: a rule created by hand starts with the 302 action by default, i.e. a temporary redirect. For a permanent move, remember to pick “301 Moved permanently”. Odoo 20 defaults to 301.

💡 Key takeaway

Odoo 19: developer mode required, and check the action of every rule, which is 302 unless you change it. Odoo 20: menu visible, 301 by default.

4. 301, 302, 308, 404: four actions, four uses

The Action field offers four values. They do very different things:

  • 301 Moved permanently: the old address sends visitors to the new one, for good. This is the right choice for a redesign or a renamed page. The target can be a page of your site or a full external address (https://…).
  • 302 Moved temporarily: same effect for the visitor, but you signal that the old address will come back. Useful for a few weeks’ promotion or a page under construction.
  • 308 Redirect / Rewrite: here you do not move a page, you rename an Odoo route, that is, an address handled by an app. Tested example: /blog becomes /actualites. The new address shows the blog, the old one points to it. The URL from field is then picked from the list of routes (“Refresh route’s list” button if it is incomplete).
  • 404 Not Found: switches off an app route. For example, you installed eCommerce but do not want /shop on one of your websites.

The 308 accepts routes with parameters. I renamed the blog post route, the one containing <model("blog.blog"):blog> and <model("blog.post"):blog_post>, to /actus/…: every post followed, with a single rule. Odoo requires exactly the same parameters on both sides, and refuses / or an existing route as the target.

💡 Key takeaway

301 and 302 move one precise address. 308 and 404 act on app routes (blog, shop, events…), not on pages built in the editor.

⚔️ The Match: 301 redirect vs 308 rewrite

Criterion 301 / 302 308 Redirect / Rewrite
Use case Renamed page, old address from another site Rename an app route (/blog, /shop)
Address with parameters No: one rule per exact address Yes, one rule for the whole route
External target (https://…) Yes No, must start with /
Pages built in the editor Yes, if the old address no longer exists Rule accepted, but no effect
URL parameters (?utm=…) Passed on to the target Passed on to the target

Behaviour recorded on 24/11/2026 on a disposable Odoo 19 test database (website and blog, demo data), with real HTTP requests, and confirmed in the Odoo 20 code.

5. A full redesign: import the list

When you migrate an old website (WordPress, Wix, custom site), you often have dozens of addresses to carry over. No need to type them one by one: the Redirects list can be imported like any Odoo list, and Odoo provides a sample file, “Import Template for Redirects”. One column for the old address, one for the new one, one for the action.

Two precautions:

  • In Odoo 19, fill the action column with 301 and give each line a name: without an action, every rule starts as a 302, and the name is mandatory. Odoo 20 generates the name and uses 301 by default (404 if the line has no target).
  • Odoo does not detect loops. I saved a rule A to B and a rule B to A without any error: the visitor goes round in circles until the browser gives up. Proofread your file before importing, especially if several people put it together.

Once live, test the most visited old addresses. If your site is connected to Google Search Console, its report of pages returning 404 will show you the forgotten addresses over the following weeks.

💡 Key takeaway

A well-prepared spreadsheet beats manual entry. But Odoo lets you create a loop: proofreading is up to you.

6. What Odoo redirects cannot do

The system is simple, and its limits come from that. All of these were checked in testing:

  • No wildcard, no regular expression. A rule /ancien-blog/* only redirects the address literally written /ancien-blog/*. For 200 old addresses, you need 200 rules (hence the import).
  • Exact address, case included. /Ancienne-Page and /ancienne-page are two different addresses. Only the trailing slash is tolerated.
  • A page that still exists wins. A 301 from /contactus, while that page exists, has no effect: Odoo serves the page. Odoo 20 now says so on the rule (“This redirection will not have any effect since the URL … is already in use”), Odoo 19 stays silent. To redirect a page that is still published, rename or delete it first.
  • Nothing at domain name level. A rule only sees the path after the domain name. Moving from votresite.be to www.votresite.be, or from http to https, is not handled here. For Odoo Online, Odoo’s official documentation asks for a 301 redirect from the naked domain to www at your DNS provider (Cloudflare if yours cannot do it), because Odoo does not generate a certificate for a naked domain. When self-hosting, this is configured on the web server or proxy.

On the other hand, the rule is the same everywhere: it is a list stored in your database, with no server file to touch. So it works the same way on Odoo Online, on Odoo.sh and self-hosted.

💡 Key takeaway

Odoo redirects exact paths. Wildcards, domains, www and https are handled elsewhere, or with one rule per address.

The Verdict: it is all in Odoo, provided you know its rules

No server needed to redirect your old pages: the “Redirect Old URL” box covers renames, the redirect list covers redesigns, and the 308 renames app addresses. You just need to know where the menu is in Odoo 19, check that your rules really are 301s and not ask them for what they cannot do.

Planning a website redesign in Odoo and want to list the addresses to carry over before going live? It is one of the points I review during an audit of your Odoo.

Request a Free Audit
Odoo 20: no more Company or Person choice on a contact, here is the new rule