Redirects when an address changes

Editing content
Applies to: official Sulu extension “Redirects” As of Sulu 3.0

This needs the official Sulu extension “Redirects”. If it is missing from your administration, it is not installed.

In short

Sulu remembers a changed address by itself. You create your own redirects under Settings › Redirects with source, target and status code. This list only exists with the official Sulu extension Redirects.

If the address of a page changes, old links, bookmarks and search results lead nowhere. Redirects prevent this. Some are created by themselves, others you create yourself.

Every Sulu remembers the old addresses of a page. The list Redirects for your own entries only exists with an official Sulu extension.

Helpful first: 2.7 Creating a new page and adding it to the menu 2.8 Hiding a page for a while

Step 1 of 4 Changing the address of a page

The form of the page shows the Resource Locator (1). If you change it and publish the page, Sulu remembers the old one. Show history (2) lists the earlier addresses of the page.

Step 2 of 4 Looking at the old addresses

A click on Show history opens the window History. It names the old address, here /services/tyres. In the test, the old address led to the new page with status 301.

Step 3 of 4 The list of redirects

Click Settings › Redirects. The columns are Enabled, Source (1), Source Host, Target and Status-Code (2). In the example there are two entries with status 410. Add (3) creates a new redirect.

Step 4 of 4 Creating a redirect

The Status-Code is preset to “301: Moved Permanently” (1). At Source (2) enter the old address without the domain, at Target (3) the new one. If you leave Source Host empty, the redirect applies to all domains. With Save you store it.