The actual source

Simple redirects

Read the whole file. This is the code the example uses, not a separately maintained copy.

redirects.phpOpen the example
<?php
return [
    '/hello' => '/examples/hello',
    '/temporary-hello' => ['to' => '/examples/hello', 'status' => 302],
];

Back to all examples