-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
redirects.php
21 lines (15 loc) · 756 Bytes
/
redirects.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
* Defining slugs, which directly redirect to another target.
* There is another additional option for redirects within the routing itself. This one is thought for redirects, if an existing page goes offline.
* Use the option here if you initially want to redirect specific paths - e.g. after a migration.
* Mind that those redirects get checked only if there is no respective active page!
*/
// All redirects.
$redirects = array();
/* Example:
$slug = 'de/subdir/my-sample-page'; // Mind to not have a slash at the beginning and end of the string. Also add a possible language information here - it really needs to be the full path!
$redirects[$slug]['target'] = 'https://www.google.com';
$redirects[$slug]['type'] = 301;
*/
?>