Edel Go Redirects

外掛說明

Edel Go Redirects lets you create short, memorable links on your own domain, such as https://example.com/go/course, and redirect them to any URL. Each redirect is counted, so you can see which link is used the most.

Typical uses:

  • Put a short link in a book, a slide deck or a printed flyer instead of a long affiliate URL
  • Use a different slug for each place you share the same destination (website, social media, email) and compare the counts
  • Change the destination later without editing the book or the post that contains the link

Features:

  • Add, update and delete links from Tools > Go Redirects
  • Redirect count per link, with a reset button
  • Change the URL prefix (default go) if the path is already in use
  • Links can also be added from code with the edel_go_links filter
  • No custom database tables. Everything is stored in three options and removed on uninstall

螢幕擷圖

安裝方式

  1. Upload the edel-go-redirects folder to /wp-content/plugins/, or install it from Plugins > Add New Plugin.
  2. Activate the plugin.
  3. Go to Tools > Go Redirects, enter a slug and a destination URL, and click Save link.
  4. Open https://your-site.example/go/your-slug to test the redirect.

常見問題集

Does it need pretty permalinks?

Yes. The plugin matches the request path, so permalinks must be set to anything other than “Plain”.

What if I already have a page at /go/?

Change the prefix in Tools > Go Redirects > Settings. For example, set it to l and your links become /l/slug.

Can I add links from code?

Yes. Use the edel_go_links filter:

add_filter('edel_go_links', function ($links) {
    $links['docs'] = 'https://example.com/docs/';
    return $links;
});

Links added by code are shown in the table but cannot be deleted from the screen.

Is the redirect permanent (301) or temporary (302)?

Temporary (302), so that browsers keep asking the server and every visit is counted.

What is removed on uninstall?

The three options that store the links, the prefix and the counts.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Edel Go Redirects〉的開發相關工作。

參與者

將〈Edel Go Redirects〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.1

  • Removed the Plugin URI header and fixed the Contributors name (review feedback)

1.1.0

  • Links are now managed from the admin screen instead of code
  • URL prefix can be changed
  • Works in subdirectory installs
  • Translation ready (Japanese translation included)

1.0.0

  • Initial private release