- Maintain SEO value: Redirect outdated or deleted pages to relevant content, preventing loss of search engine ranking and traffic.
 - Improve user experience: Ensure users land on the correct page, avoiding frustration and confusion.
 - Boost website performance: Efficiently handle redirects without compromising website speed.
 
Configuration
We store redirect rules in a JSON file located at[starter]/lib/redirects/redirects.json.
This file follows a simple structure, where each key represents the old URL path, and the corresponding value is an object containing the destination URL and a permanent flag indicating whether the redirect is permanent (301) or temporary (307).
Here’s an example of the redirects.json file:
[starter]/lib/redirects/redirects.json
redirects.json file according to your needs. Remember to maintain the correct JSON structure.
Important: After making changes to the redirects.json file, you must execute the following command to update the generated Bloom filters: