Create a 301 redirect
Add a new 301 redirection rule to a site.
This endpoint allows you to define a source path (fromUrl
) and its corresponding destination path (toUrl
), which will dictate how traffic is rerouted on your site. This is useful for managing site changes, restructuring URLs, or handling outdated links.
Enterprise Only
This endpoint requires an Enterprise workspace.Required scope: sites:write
Path parameters
site_id
Unique identifier for a Site
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
fromUrl
The source URL path that will be redirected.
toUrl
The target URL path where the user or client will be redirected.
Response
Request was successful
id
The ID of the specific redirect rule
fromUrl
The source URL path that will be redirected.
toUrl
The target URL path where the user or client will be redirected.