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 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

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: Execute the installation process by clicking the "Install" button. This action creates the necessary rules in "Draft" mode that automatically redirect all the requests from the source folder to the target folder.
  4. Review the created rules: Review the created rules to make sure that they accurately reflect your configuration. If necessary, you can edit the rules before publishing them on your website.
  5. Publish on your website: Finalize the installation by publishing the rules on your website.