13. 301 Redirects

When launching a new website, it is often that you change the page structure or decide to exclude some pages. What then occurs, is that previous link addresses will no be valid (for example search results on Google), and this will result in a 404 Page not found.

If the page does not exist on the new website, this is of course the correct action. But if the page does exist, but in a different location, you can add the so called 301 redirect to avoid this.

This chapter will show you how to add these redirects in you TYPO3 installation.

13.1 Where to find the redirects

Select "Info" in the control panel in the left column and choose the root page of the website (traditionally the page with the globe icon). In the working area, to the right, select "RealURL management" in the top dropdown and then "Redirects" in the dropdown below it. Click "Add new redirects" to start adding the new addresses (img 13.1.1). 

13.2 Adding redirects

You will be able to add 10 redirects at a time.

First you add the Source URL (1), which is the address the page used to have. NOTE! The domain (ex www.domain.com) is not added, only the part after the domain. This should be added WITHOUT the forward slash (/) but always have a forward slash at the end.

The second field contains the Destination URL (2), which is the address the page will come to have. NOTE! The domain (ex www.domain.com) is not added, only the part after the domain. This should be added WITH the forward slash (/) and always have a forward slash at the end.

The dropdown (3) needs to have the correct domain set.

Finally check the box (4), which should always be checked.

When you are done, Save (img 13.2.1).

13.3 Search for and edit redirects

It is possible to search for a particular redirect, by using a part of the address. Use the pen icon to edit the redirect and the trashcan to delete it (img 13.3.1).