a6-plugin-redirect

Manage Apache APISIX redirect plugin configurations with the a6 CLI.

1|2|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/moonming/a6 --skill a6-plugin-redirect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: a6-plugin-redirect
Source: https://github.com/moonming/a6/tree/main/skills/a6-plugin-redirect
Command: npx skills add https://github.com/moonming/a6 --skill a6-plugin-redirect

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the configuration of the Apache APISIX redirect plugin, enabling efficient management of URL redirections, HTTPS enforcement, and URI rewriting.

Core Features & Use Cases

  • HTTP to HTTPS Redirection: Automatically redirect HTTP traffic to HTTPS.
  • URI Rewriting: Use regular expressions to transform request URIs.
  • Status Code Control: Specify redirect status codes (e.g., 301, 302).
  • Use Case: Redirecting old product URLs to new ones, enforcing HTTPS across your site, or rewriting API paths for versioning.

Quick Start

Configure a route to permanently redirect requests from '/old-page' to '/new-page'.

Frequently Asked Questions about a6-plugin-redirect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure HTTP to HTTPS redirection in Apache APISIX?

Configure HTTP to HTTPS redirection in Apache APISIX by using the redirect plugin to enforce secure traffic. This Skill simplifies setting up route rules that automatically forward HTTP requests to their HTTPS equivalents.

Can I use regular expressions for URI rewriting in APISIX routes?

Yes, you can use regular expressions for URI rewriting in APISIX routes. The redirect plugin supports regex-based URI transformations, allowing you to dynamically modify request paths for API versioning or URL structure updates.

How do I set up a permanent 301 redirect for old URLs using APISIX?

Set up a permanent 301 redirect for old URLs in APISIX by configuring the redirect plugin on a specific route. This Skill manages status code control, enabling you to seamlessly map outdated product pages to new destinations.

Does the APISIX redirect plugin support query string handling?

Yes, the APISIX redirect plugin supports query string handling during URI redirects. This allows you to preserve, modify, or strip query parameters when forwarding traffic to new endpoints or rewritten paths.

What is the best way to manage route redirects and URI rewrites in APISIX?

The best way to manage route redirects and URI rewrites in APISIX is through the a6 CLI. This Skill utilizes the a6 CLI for route creation and updates, streamlining the configuration of various redirection scenarios.

Why are my APISIX redirect rules not applying to new routes?

APISIX redirect rules might not apply if route creation or updates via the a6 CLI are incomplete. Ensure the redirect plugin is properly attached to the target route and that regex patterns match the request URI.