List website redirects
Returns a paginated list of redirects configured for the selected website.
Returns a paginated list of redirects configured for the selected website.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
usernamestringRequiredExample:
u123456789domainstringRequiredExample:
Domain name
mydomain.tldQuery parameters
pageintegerOptionalExample:
Page number
1per_pageinteger · max: 100OptionalDefault:
Number of items per page
25Example: 25Responses
200
Success response
application/json
401
Unauthenticated response
application/json
500
Error response
application/json
get/api/hosting/v1/accounts/{username}/websites/{domain}/redirects
GET /api/hosting/v1/accounts/{username}/websites/{domain}/redirects HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"from": "https://example.com/old-page",
"to": "https://example.com/new-page"
}
],
"meta": {
"current_page": 1,
"per_page": 15,
"total": 100
}
}Last updated
Was this helpful?