PagesRequest::request method
Set the redirect path
Usage
// basic usage
$pages->request->setRedirectPath(string $redirectPath);
// usage with all arguments
$pages->request->setRedirectPath(string $redirectPath, int $type = 301);Arguments
| Name | Type(s) | Description |
|---|---|---|
$redirectPath | string | |
$type (optional) | int | 301 or 302 |
$pages->request methods and properties
API reference based on ProcessWire core version 3.0.253