redirect-manager
/dm:redirect-manager
Purpose
Manage URL redirects across the website. Create new 301/302 redirects, audit existing redirects for chains and loops, fix broken redirect paths, and deploy changes via connected CMS MCP. Covers site migrations, URL restructuring, and ongoing redirect maintenance. Redirect mismanagement is one of the most common causes of SEO traffic loss — chains dilute link equity, loops create crawl errors, and broken redirects return 404s for previously indexed URLs. This command provides systematic redirect lifecycle management from creation through auditing and repair.
Input Required
The user must provide (or will be prompted for):
- Redirect action: The operation to perform —
create(set up new redirects),audit(scan all existing redirects for issues),fix(resolve chains, loops, and broken targets found during audit), orbulk-import(import a redirect map from CSV or Google Sheet for migrations). Multiple actions can be chained (e.g., audit then fix) - Source URL(s): For create and bulk-import — the URL(s) that should redirect. Can be exact URLs, URL patterns with wildcards (e.g.,
/old-blog/*to/blog/*), or regex patterns for complex matching. For audit and fix, source URLs are discovered automatically from the CMS - Target URL(s): For create and bulk-import — the destination URL(s) that users and search engines should be sent to. Must be live, accessible URLs returning 200 status codes. For bulk-import, provided as source-target pairs in the import file
- Redirect type:
301(permanent — use for permanent URL changes, domain migrations, HTTPS upgrades, and URL restructuring) or302(temporary — use for A/B tests, seasonal content, maintenance pages, or geo-redirects). Default is 301 if not specified - CMS platform:
wordpressorwebflow— must have the corresponding CMS MCP server connected. For WordPress, specify the redirect management method: Redirection plugin, RankMath redirects, Yoast Premium redirects, or.htaccessdirect. For Webflow, the native redirect API is used
Process
- Load brand context: Read
~/.claude-marketing/brands/_active-brand.jsonfor the active slug, then load~/.claude-marketing/brands/{slug}/profile.json. Apply brand voice, compliance rules for target markets (skills/context-engine/compliance-rules.md), and industry context. Also check for guidelines at~/.claude-marketing/brands/{slug}/guidelines/_manifest.json— if present, load restrictions. Check for agency SOPs at~/.claude-marketing/sops/. If no brand exists, ask: "Set up a brand first (/dm:brand-setup)?" — or proceed with defaults.
More from indranilbanerjee/digital-marketing-pro
video-script
Write video scripts. Use when: creating YouTube, TikTok, Reels, LinkedIn, demo, or explainer video content.
136paid-advertising
Plan paid advertising campaigns. Use when: managing Google Ads, Meta Ads, LinkedIn Ads, bid strategy, or budget optimization.
58pdf-report
Generate branded PDF reports. Use when: creating executive summaries, campaign reports, or client deliverables.
50reputation-management
Manage brand reputation. Use when: handling reviews, crisis comms, negative press, sentiment, or recovery plans.
42landing-page-audit
Audit landing pages. Use when: scoring above-fold clarity, trust signals, form friction, message match, or mobile UX.
39media-plan
Create a paid media plan. Use when: building media buy schedules, cross-channel budget allocation, or creative rotation calendars.
39