SM

    slug migration 301 redirects

    1

    Generate disk-verified 301 redirect maps for Nginx to fix 404 errors after URL structure changes.

    Free

    1 useSecurity scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    About this skill

    Changing a URL structure or fixing a slug-generation rule often leads to a massive spike in 404 errors. These broken links destroy SEO authority and waste crawl budget as Google spends months retrying dead pages. This skill automates the generation of verified 301 redirect tables specifically for Nginx environments.

    What it does

    • Slug reconstruction identifies the transformation logic required to map old URLs to their new equivalents.
    • Disk-level verification ensures a redirect is only created if the old path is missing and the target path exists.
    • Nginx map generation produces structured map files that handle thousands of redirects without bloating server configurations.
    • Config auditing checks for common Nginx pitfalls like map_hash_bucket_size limits and symlink mismatches.
    • Safety validation provides a workflow for testing configuration syntax and verifying redirect headers before production deployment.

    How it works

    1. Configure the generator by defining the site root and the specific slug transformation rule in the Python script.
    2. Execute the verification script to scan the filesystem and identify valid redirect pairs.
    3. Deploy the Nginx map to the server, ensuring the map_hash directives are present to handle large datasets.
    4. Test and reload using nginx -t to confirm syntax before applying the changes to live traffic.

    Frameworks & tools

    This skill utilizes Python for filesystem scanning and URL mapping. It is designed for Nginx web servers using map blocks for efficient redirect handling.

    Why this beats prompting it yourself

    Generic AI prompts often suggest regex rules that cause collateral damage to valid URLs. This skill enforces a "verify on disk" requirement, ensuring every single redirect leads to a live page and never creates a redirect loop or a broken target.

    Use cases

    • Migrating a blog structure from /post/slug to /articles/slug.
    • Removing redundant category suffixes from thousands of indexed product URLs.
    • Cleaning up Search Console 404 errors after a site-wide redesign.
    • Preserving SEO link equity when changing URL naming conventions in a CMS.

    Known limitations

    This skill requires the site to be served from a static filesystem for verification. It is not suitable for dynamically generated URLs that do not exist as files on disk.

    Requires access to the server filesystem to verify paths. Only supports Nginx map-based redirects. Not for dynamic sites without a disk-backed URL structure.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    1 use

    Times used to date

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 29 days ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed29 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the creation of Nginx redirect maps by verifying the existence of target files on your disk, ensuring every redirect leads to a live page rather than another 404.

    It is designed for any AI agent capable of executing Python scripts and accessing a local or staged filesystem to perform disk-level verification.

    You receive the core Python transformation engine, the disk-verification logic, and a pre-configured Nginx map template designed for high-performance redirection.

    No, this skill is specifically built for Nginx; it utilizes Nginx 'map' blocks to handle thousands of redirects efficiently without the performance lag of traditional .htaccess files.

    The skill requires the site to be stored on a static filesystem so it can verify the paths; it is not recommended for database-driven dynamic URLs that don't exist as physical files.

    The generator includes a safety validation step that checks for Nginx-specific constraints like map_hash_bucket_size to prevent server crashes during high-volume migrations.

    Free