-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathredirect.php
91 lines (76 loc) · 2.63 KB
/
redirect.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
return [
/**
* Whether Redirect should be enabled.
*/
'enable' => env('REDIRECT_ENABLED', true),
/**
* Whether Redirect should preserve query strings.
*/
'preserve_query_strings' => env('REDIRECT_PRESERVE_QUERY_STRINGS', false),
/**
* Controls whether Redirect automatically creates a redirect
* when an entry's URI changes.
*/
'create_entry_redirects' => env('REDIRECT_AUTO_CREATE', true),
/**
* Controls whether Redirect automatically deletes conflicting
* redirects when an entry is saved.
*/
'delete_conflicting_redirects' => env('REDIRECT_DELETE_CONFLICTS', true),
/**
* Controls whether Redirect logs 404 errors.
*/
'log_errors' => env('REDIRECT_LOG_ERRORS', true),
/**
* Controls whether Redirect logs individual hits.
*/
'log_hits' => env('REDIRECT_LOG_HITS', true),
/**
* Should error logs be cleaned? Make sure your schedule is running.
*/
'clean_errors' => env('REDIRECT_CLEAN_ERRORS', true),
/**
* Should error logs be cleaned when saving a new error?
*/
'clean_errors_on_save' => env('REDIRECT_CLEAN_ON_SAVE', true),
/**
* Error logs older than this will be deleted.
* @link http://php.net/manual/en/dateinterval.createfromdatestring.php
*/
'clean_older_than' => '1 month',
/**
* The maximum number of unique errors to keep.
* This does not include individual hits.
*/
'keep_unique_errors' => 1000,
/**
* The database connection used to store errors. By default,
* this is the included 'redirect-sqlite'. Use
* 'default' to use the Laravel default.
*/
'error_connection' => env('REDIRECT_ERROR_CONNECTION', 'redirect-sqlite'),
/**
* The database connection used to store redirects. By
* default, this is the included 'stache' connection.
* Use 'default' to use the Laravel default.
*/
'redirect_connection' => env('REDIRECT_REDIRECT_CONNECTION', 'stache'),
/**
* Customize where on filesystem the redirects are being stored in stache.
* Useful when using a non-conventional setup where data should
* not be inside the usual content/redirects folder.
*/
'redirect_store' => base_path('content/redirects'),
/**
* Customize the redirect repository you want to use for data
* storage. Provide null to automaticly use a repository
* based on the 'redirect_connection'.
*/
'redirect_repository' => null,
/**
* Set the default redirect type for new redirects.
* Can be one of: 301, 302, 410.
*/
'default_redirect_type' => 302,
];