Redirect URLs: A Guide to 301 & 302 Redirects on Your Website

Redirect URLs: A Guide to 301 & 302 Redirects on Your Website

By Michael Thompson

December 2, 2024 at 03:46 AM

URL redirects prevent visitors from encountering dead links by routing traffic from inactive to active pages. There are two main types: permanent (301) and temporary (302) redirects.

301 Redirects

  • Used for permanent URL changes
  • Transfer page ranking to new URL
  • Search engines update their index
  • Best for:
    • Changed page URLs
    • Deleted pages
    • Imported content
    • Domain changes

302 Redirects

  • Used for temporary URL changes
  • Maintain original page ranking
  • Search engines keep original URL indexed
  • Best for:
    • Seasonal content
    • Temporary page updates
    • Rotating content

Creating Redirects

  1. Navigate to Developer Tools > URL Mappings
  2. Add redirects using this format:
    • /old-url -> /new-url 301
    • /old-url -> /new-url 302
  3. Click Save

Important Guidelines

  • 400 KB limit (approximately 2,500 redirects)
  • Higher redirects take precedence
  • Original page must be deleted or disabled
  • Case-sensitive URLs
  • Avoid symbols (?, &, #)

Collection Page Redirects For multiple items (blogs, shops, events), use [name] variable:

/old-blog/[name] -> /new-blog/[name] 301
/shop/[name] -> /new-shop/p/[name] 301

Common Issues

  • 404 errors occur if:
    • Redirect activates multiple times within 2 minutes
    • Target page is disabled/deleted
    • Ajax loading is enabled (Version 7.0)
  • Invalid mappings from:
    • Missing arrow (->)
    • Missing redirect type
    • Extra components
    • Incorrect redirect type format

Always test redirects after implementation to ensure proper functionality.

Related Articles

Previous Articles