Overview
This endpoint returns all URL redirects configured in your SitePlot instance with pagination support. You can filter results to show only active redirects and control the number of results per page.Authentication
Bearer token with your API key:
Bearer YOUR_API_KEYQuery Parameters
Page number for pagination. Must be 1 or greater.
Number of items per page. Must be between 1 and 100.
If set to
true, returns only active redirects. If omitted, returns all redirects regardless of status.Response
Array of redirect objects
Pagination metadata
Error Responses
Redirect Types
Thetype field indicates the HTTP status code used for the redirect:
| Type | HTTP Status | Description | Use Case |
|---|---|---|---|
permanent | 301 | Permanent redirect | Page has moved permanently, SEO value transfers |
temporary | 302 | Temporary redirect | Page temporarily moved, SEO value retained at original URL |
Use Cases
SEO Management
Monitor and manage URL redirects to maintain search engine rankings when restructuring your site.Link Maintenance
Ensure old links continue to work by setting up appropriate redirects to new page locations.Campaign Tracking
Create temporary redirects for marketing campaigns and track their performance.Site Migration
Manage redirects during site migrations to ensure users and search engines find your content.Path Matching
Exact Path Matching
Redirects match the exact path specified infromPath:
/old-pagematches only/old-page- Does not match
/old-page/or/old-page/subpage
Query Parameters
Query parameters are preserved during redirects:- Request to
/old-page?utm_source=email - Redirects to
/new-page?utm_source=email
Best Practices
Permanent vs Temporary Redirects
- Use permanent (301) redirects when content has moved permanently
- Use temporary (302) redirects for short-term changes or A/B testing
Redirect Chains
Avoid creating redirect chains (A → B → C). Instead, redirect directly to the final destination (A → C).Performance Considerations
- Too many redirects can impact site performance
- Regularly audit and clean up unnecessary redirects
- Monitor redirect response times
Filtering Examples
Get Only Active Redirects
Get All Redirects (Including Inactive)
Paginate Through Large Redirect Lists
Related Endpoints
- List Pages - View all pages that redirects might point to
