PHP API

Although the REST API is the preferred method of accessing Redirection, it is also possible to call Redirection functions directly using PHP.

It should be noted that this API is subject to change. Use at your own risk.

Creating Redirects

The key to creating a redirect is with Red_Item::create(). It is passed an array of data that determines the redirect.

Note the array will be sanitized with Red_Item_Sanitize.

See the REST API documentation for details of expected data formats.

search previous next tag category expand menu location phone mail time cart zoom edit close