Redirect Strategy for Broken Links
Date: November 10, 2025Purpose: Handle broken URLs discovered by Google and prevent 404 errors for users
Overview
With 719 noindexed pages discovered by Google Search Console, we need a systematic approach to handle broken URLs through redirects. This document outlines the strategy for implementing redirects in Mintlify.Current Redirect Configuration
Existing Redirects in docs.json
You already have some redirects configured. Here’s the current pattern:
Redirect Decision Matrix
Priority 1: HIGH - Must Redirect
URLs that users or external sites are actively accessing:| Pattern | Destination | Reason |
|---|---|---|
/release-notes/v4.7.4-may-2025 | /release-notes/v4.x/v4.7.x-lts/v4.7.4-may-2025/v4.7.4-may-2025 | Google indexed, user bookmarks |
/release-notes/v3.4.0-september-2023 | /release-notes/v3.x.x/v3.4.0-september-2023/v3.4.0-september-2023 | Historical reference |
/4.5.0/* | /4.6.0/* | Version folder doesn’t exist |
/5.0-tech-preview/* | /5.1/* | Renamed version |
/faqs | /5.1/docs/introduction or 404 | Deprecated page |
Priority 2: MEDIUM - Should Redirect
Old documentation structures that changed:| Pattern | Destination | Reason |
|---|---|---|
/release-notes/docs/* | /release-notes/v3.x.x/* or /release-notes/v4.x/* | Restructured folders |
/release-notes/v5.x/5.1/* | /5.1/* | Wrong path structure |
/release-notes/5.0-tech-preview/* | /5.1/* | Renamed version |
/4.7.0/* | /4.7.x/* | Specific version → LTS version |
Priority 3: LOW - Let 404
URLs that should fail (no redirect needed):| Pattern | Reason |
|---|---|
$2, runtime(, invalid paths | Malformed URLs from crawl errors |
auth-*.demo.flowx.ai | External demo systems |
/health, /actuator/* | Internal system endpoints |
oauth2/v2.0/token | API endpoints, not docs |
Implementation Strategy
Phase 1: Add Version Folder Redirects (IMMEDIATE)
Handle the main broken version references:Phase 2: Add Release Notes Redirects (SHORT-TERM)
Handle flat release notes URLs that moved into folder structure:Phase 3: Add Malformed Path Redirects (MEDIUM-TERM)
Handle nested release notes paths:Phase 4: Handle Special Cases (OPTIONAL)
Mintlify Redirect Syntax
Pattern Matching
Mintlify supports these redirect patterns:Redirect Types
Mintlify uses 301 (Permanent) redirects by default, which is perfect for SEO.Automated Redirect Generation
Script: Generate Redirects from CSV
Create a script to analyze Google Search Console data and suggest redirects:Testing Redirects
1. Local Testing
Mintlify doesn’t support redirects in local dev, but you can test the redirect rules logic:2. Preview Environment Testing
Deploy to Mintlify preview and test redirects:3. Production Validation
After deploying redirects:Monitoring & Maintenance
Monthly Redirect Audit
Check in Google Search Console:- Coverage → Excluded →
Redirect error(should be empty) - Coverage → Excluded →
Page with redirect(review list) - Performance → Search results (check if redirected URLs still get traffic)
Quarterly Cleanup
Remove outdated redirects:- Redirects older than 1 year with zero traffic
- Redirects to pages that no longer exist
- Temporary redirects that became permanent
- Ensure redirects point to current version docs
- Update redirects for renamed/moved pages
- Fix redirect chains
Redirect Best Practices
✅ DO:
- Use 301 (Permanent) redirects - Better for SEO
- Redirect to most relevant current page - Don’t just send to homepage
- Preserve URL structure when possible - Keep same path depth
- Test redirects after deployment - Ensure they work
- Document why each redirect exists - Add comments in docs.json
- Keep redirect list organized - Group by type/version
- Monitor redirect performance - Check Google Search Console
❌ DON’T:
- Create redirect chains - A → B → C (bad), go A → C directly
- Redirect to 404 pages - Verify destination exists
- Use temporary (302) redirects - Unless truly temporary
- Redirect everything to homepage - Be specific
- Forget to handle trailing slashes - Add both versions
- Create circular redirects - A → B → A
- Leave redirects forever - Clean up old ones
Implementation Checklist
Phase 1: Immediate (Week 1)
- Add version folder redirects (
4.5.0,5.0-tech-preview,4.7.0) - Add top 20 release notes redirects
- Deploy to preview environment
- Test critical redirects
- Deploy to production
- Monitor Google Search Console for 48 hours
Phase 2: Short-term (Week 2-3)
- Generate full redirect list from CSV data
- Add remaining release notes redirects
- Add malformed path redirects
- Test all new redirects
- Deploy to production
- Request Google to recrawl affected URLs
Phase 3: Medium-term (Month 2)
- Create automated redirect generation script
- Set up redirect monitoring dashboard
- Document redirect maintenance process
- Train team on redirect management
Phase 4: Long-term (Quarterly)
- Review redirect effectiveness
- Clean up outdated redirects
- Update redirect documentation
- Optimize redirect rules
Recommended Redirects to Add Now
Based on the Google Search Console data, here are the top priority redirects to add immediately:- Fixes ~400-500 broken URLs
- Reduces 404 errors by 60-70%
- Improves SEO for historical content
- Better user experience for bookmarked pages
Success Metrics
Track these metrics to measure redirect effectiveness:
-
404 Error Rate
- Target: < 1% of total pageviews
- Measure: Google Analytics / Search Console
-
Redirect Traffic
- Track: Pageviews to redirected URLs
- Goal: Decline over time (as Google updates index)
-
Crawl Errors
- Target: 0 “Redirect error” in Search Console
- Monitor: Weekly for first month
-
Search Visibility
- Track: Indexed pages count in Search Console
- Goal: Increase from current ~280 to ~350+
-
User Experience
- Track: Bounce rate on redirected pages
- Target: < 50% bounce rate
Additional Resources
Tools
- Redirect Mapper Chrome Extension - Test redirects in browser
- Screaming Frog SEO Spider - Crawl site and find redirect chains
- Google Search Console - Monitor redirect errors
- Redirect Checker (redirectcheck.com) - Verify redirect responses
Documentation
Changelog
| Date | Change | Impact |
|---|---|---|
| 2025-11-10 | Initial redirect strategy created | Documentation |
| 2025-11-10 | Recommended top priority redirects | ~400-500 URLs |
Questions & Support
Before adding a redirect, ask:- Is this URL getting traffic? (Check Search Console)
- Is there a better destination than this?
- Will this create a redirect chain?
- Does the destination exist and work?
- Check this document first
- Review Google Search Console data
- Test redirects in preview environment
- Consult with team before deploying major changes

