create_redirect
Create URL redirects in LightCMS to manage broken links and content reorganization. Set up 301 permanent or 302 temporary redirects from old URLs to new destinations.
Instructions
Create a new URL redirect. Use 301 for permanent redirects, 302 for temporary.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | No | Optional description/note | |
| from_path | Yes | Source path (e.g., /old-page),required | |
| status_code | No | 301 (permanent) or 302 (temporary), defaults to 301 | |
| to_path | Yes | Destination path or URL (e.g., /new-page),required |