This recipe allows to redirect a complete folder to another one, and preserves the paths within this folder.

For example, if you recently renamed the /store folder to /shop, while keeping all the subfolders intact, this recipe will allow to create the necessary redirection.io rule to redirect all the requests from /store/* to /shop/* (for example /store/cart will be redirected to /shop/cart).

Once the recipe is installed, you can edit the generated rule to adapt it to your requirements.

How to install this recipe on my website with redirection.io?

Installing this recipe on your website requires the following steps:

  1. Define the source folder to redirect: Enter the folder that you want to redirect. It must start with a /.
  2. Define the target folder to redirect to: Enter the folder that you want to redirect to. It must start with a /. In order to redirect to the root of the website, enter /.
  3. Click on the "Install on my website" button: install the recipe - this creates a new rule in "Draft" mode that you can edit, if necessary
  4. Publish on your website: publish the rules on your website and it should be live in a matter of seconds

Discover our recipes to improve your website's quality in one click

redirection.io's recipes are a powerful feature designed to simplify the implementation of front-end quality best practices for your websites. Think of them as a curated "app store" for your site, offering a variety of pre-configured solutions that can be installed with a single click.

Discover all redirection.io recipes