Create redirect
The redirect:create command allows you to create a new redirect for a site.
ploi redirect:create
Create a redirect for a specific site:
ploi redirect:create --server=blue-ocean --site=example.com
Options
| Option | Description |
|---|---|
--server= | The server name or ID |
--site= | The site domain |
When running the command interactively, you will be prompted to enter:
- Source URL (from)
- Destination URL (to)
- Redirect type (301 permanent or 302 temporary)