YAML Redirect Generator
Need to create SEO-friendly YAML redirects for Netlify, Jekyll, Eleventy, or other static site generators? This tool generates 301 and 302 redirects in the correct YAML format, so you can easily copy-paste them into your configuration file.
How to Use the YAML Redirect Generator
Setting up SEO-friendly redirects for Netlify, Jekyll, or Eleventy? Follow these steps:
Step 1: Select Redirect Type
- Choose 301 for permanent redirects.
- Choose 302 for temporary redirects.
Step 2: Enter Old URL (From)
Enter the URL you want to redirect from (e.g., `/old-page/`).
Step 3: Enter New URL (To)
Enter the destination URL where users should be redirected (e.g., `/new-page/`).
Step 4: Generate Redirect
Click the "Generate Redirect" button to create the correct YAML redirect rule.
Step 5: Copy & Add to Your Configuration
- If using Netlify, paste it into your `_redirects` file or `netlify.toml`. - If using Jekyll or Eleventy, add it to your `_config.yml`.