TYPO3 Glossary

301 Moved Permanently

301 Redirects in TYPO3

The 301 Moved Permanently status code is an important part of web management, especially when it comes to changing URLs on your TYPO3 website. When a page is moved or deleted, a 301 redirect tells search engines and users that the content has been permanently moved to a new location. This helps to maintain traffic, maintain SEO rankings and improve the user experience.

Why use 301 redirects?

Using a 301 redirect is important if you change the URL of a page or if a page is no longer available. This informs browsers and search engines that the old page has been permanently moved to a new URL. Here are some reasons why 301 redirects are important:

  • SEO benefits: A 301 redirect helps to transfer the ranking power from the old URL to the new one. This means that if your original page was ranking well, the new page can take over that ranking.
  • User friendliness: When users click on an old link, a 301 redirect ensures that they are redirected to the new page instead of receiving a 404 Not Found error. This way, users stay on your website and frustration is reduced.
  • Traffic Retention: Redirects help capture traffic that would have gone to the old URL and ensure you don't lose visitors when changes are made.

How to set up 301 redirects in TYPO3

Setting up 301 redirects in TYPO3 is quite simple. Here is the guide on how to do it:

  1. Access the TYPO3 backend: Log in to your TYPO3 backend.
  2. Navigate to the Redirects module: Search for the "Redirects" module in the main menu. If it is not installed, you may need to add it as an extension.
  3. Add a new redirect: Click on the option to add a new redirect. You will usually need to enter the old URL (the one you want to redirect) and the new URL (the one you want to redirect users to).
  4. Specify the redirect type: Make sure that you select "301 Moved Permanently" as the redirect type. This tells the server and search engines that the redirect is permanent.
  5. Save your changes: Once you have entered the details, save the redirect. TYPO3 will now process requests to the old URL by automatically redirecting users to the new URL.

Test your redirects

After you have set up a 301 redirect, it is important to test it:

  • Visit the old URL: Open a browser and enter the old URL. You should be redirected to the new URL without any problems.
  • Check the status codes: Use online tools or browser development tools to check the HTTP status code for the old URL. It should show 301 Moved Permanently.

Common problems with 301 redirects

Sometimes problems can occur when setting up redirects:

  • Redirect loops: If the new URL redirects back to the old one, a loop is created. Make sure that your redirects point correctly without creating a loop.
  • Incorrect redirects: Double check the URLs you enter to make sure they are correct. A small typo can lead to incorrect redirects.
  • Internal links that have not been updated: Even with redirects, it is advisable to update all internal links that point to the old URL so that they point directly to the new URL. This reduces the reliance on redirects and improves website performance.

Conclusion

The 301 Moved Permanently status code is essential for managing changes on your TYPO3 website. By setting up 301 redirects, you can maintain SEO rankings, keep users happy and ensure that traffic flows smoothly to the right pages. Check your redirects regularly and make adjustments as needed to keep your website performing optimally.