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?
-
1. Configuration -
2. Installation -
3. Validation
Installing this recipe on your website requires the following steps:
- Define the source folder to redirect: Enter the folder that you want to redirect. It must start with a
/. - 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/. - 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
- Publish on your website: publish the rules on your website and it should be live in a matter of seconds