-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
103 lines (64 loc) · 2.79 KB
/
readme.txt
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
92
93
94
95
96
97
98
99
100
101
102
103
=== Redirect.txt ===
Contributors: nko
Tags: 301, 404, redirect, redirection, redirects
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.2
Stable tag: 0.2.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Manage 301 & 302 redirects easily. No posts creation bloat, just a simple list.
== Description ==
With Redirect.txt, you can provide a simple list of URLs and their destinations with no post-creation bloat, no limitations, and just a simple editor.
There are many good redirect plugins that have been developed for years and have a strong code base. But we don't like the idea of creating separate posts/entries for each redirection rule. We simply need to add, remove, and manage redirects in a simple and bulk way.
.htaccess and nginx configs are OK, but we don't want to edit configs placed somewhere in server directories; we want to open our admin panel and add redirects easily. We also don't care about wrong config configurations, which will stop your server.
=== Quick Links ===
[GitHub](https://github.com/nk-crew/redirect-txt)
=== Features ===
- Path redirects
- Full URL redirects
- Post ID redirects
- RegEx redirects
- Redirect logs
- 404 logs
=== Usage ===
Open `Tools → Redirect.txt` and provide a list of URLs here. Here is an example of available syntax:
# The links below will automatically use 301 redirects.
/hello: /new-hello
# Support for custom status
# To make 301, 302, 303, 307, or 308 redirects, use a code like this:
308: # All redirections below will use 308 redirect status.
# Support for post ID's
# Redirect from post with ID 1 to post with ID 8:
1: 8
# Support for external redirects:
/external: https://google.com/
# Support for RegEx redirects (automatically detected when the string starts with ^):
^/news/(.*): /blog/$1
# You can use as many comments as you want to categorize your links better.
The same rules without comments:
/hello: /new-hello
308:
1: 8
/external: https://google.com/
^/news/(.*): /blog/$1
== Screenshots ==
1. Redirection rules list
2. Redirection and 404 logs
3. Settings
== Installation ==
= Automatic installation =
Install the Redirect.txt either via the WordPress plugin directory or by uploading the files to your server at `wp-content/plugins`.
= Usage =
To start using the Redirect.txt, just open the Admin Menu → Tools → Redirect.txt and follow instructions.
== Changelog ==
= 0.2.4 - Jul 3, 2024 =
- added support for redirects to links with hash
= 0.2.3 - May 26, 2024 =
- disable redirects from `wp-admin`, `wp-json` and `wp-login.php` paths
= 0.2.2 - May 17, 2024 =
- changed code editor to light mode by default, to prevent switch to dark when system is in dark mode
= 0.2.1 - May 12, 2024 =
- remove some dev folders from the plugin
= 0.2.0 - May 12, 2024 =
- Release