From 20170a200b4d37a06ef5f64acd23a9f0a28b78ae Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 6 Apr 2024 01:17:26 +0300 Subject: [PATCH] Update readme.txt --- readme.txt | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index aaf5991..98d93d9 100644 --- a/readme.txt +++ b/readme.txt @@ -12,8 +12,57 @@ Manage 301 & 302 redirects easily. No posts creation bloat, just a simple list. == Description == -Provide a simple list of URLs and their destinations, and Redirect.txt will take care of the rest. +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. + +=== 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: + +```yaml +# 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: + +```yaml +/hello: /new-hello + +308: + +1: 8 +/external: https://google.com/ +^/news/(.*): /blog/$1 +``` == Installation ==