Title: Redirect by Custom Field
Author: mitcho (Michael Yoshitaka Erlewine)
Published: <strong>January 10, 2011</strong>
Last modified: November 22, 2013

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/redirect-by-custom-field.svg)

# Redirect by Custom Field

 By [mitcho (Michael Yoshitaka Erlewine)](https://profiles.wordpress.org/mitchoyoshitaka/)

[Download](https://downloads.wordpress.org/plugin/redirect-by-custom-field.1.0.zip)

 * [Details](https://en-au.wordpress.org/plugins/redirect-by-custom-field/#description)
 * [Reviews](https://en-au.wordpress.org/plugins/redirect-by-custom-field/#reviews)
 * [Development](https://en-au.wordpress.org/plugins/redirect-by-custom-field/#developers)

 [Support](https://wordpress.org/support/plugin/redirect-by-custom-field/)

## Description

Sometimes you have a need for having links to external URLs show up interspersed
among your own pages or posts. This plugin lets you easily create such “redirecting”
posts or pages by simply setting a custom field.

**Usage**: Add the custom field with label “redirect” to any post or page. Enter
the redirect target URL as the value of that custom field. Now all links on your
site to that post or page will be replaced with that redirect URL! If you try to
visit the permalink URL for that page, it will redirect the user to that redirect
URL too.

This plugin actually also works fine to redirect a URL to another URL on the same
site as well.

**Placeholders**: New in version 0.9: the strings `%home%` and `%site%` in URLs 
are replaced by the WordPress home URL and site URLs, respectively.

Development of this plugin was supported by the [Arts at MIT](http://arts.mit.edu/).

## FAQ

If your question isn’t here, ask your own question at [the WordPress.org forums](https://wordpress.org/tags/redirect-by-custom-field?forum_id=10#postform).
_Please do not email or tweet with questions._

## Reviews

![](https://secure.gravatar.com/avatar/7d750e8b78512cfb85e022d34a63ff4432931c658b12cc00faca6f1492dc9a0e?
s=60&d=retro&r=g)

### 󠀁[Superb One!](https://wordpress.org/support/topic/superb-one/)󠁿

 [sheenpaul](https://profiles.wordpress.org/sheenpaul/) September 3, 2016

Works Perfectly and surely its a powerful plugin for affiliates. It simply work 
with wp-all-import which you can promote millions of products from various affiliate
networks like cj,shareasale,tradetracker zanox and more.

 [ Read all 5 reviews ](https://wordpress.org/support/plugin/redirect-by-custom-field/reviews/)

## Contributors & Developers

“Redirect by Custom Field” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ mitcho (Michael Yoshitaka Erlewine) ](https://profiles.wordpress.org/mitchoyoshitaka/)

[Translate “Redirect by Custom Field” into your language.](https://translate.wordpress.org/projects/wp-plugins/redirect-by-custom-field)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/redirect-by-custom-field/),
check out the [SVN repository](https://plugins.svn.wordpress.org/redirect-by-custom-field/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/redirect-by-custom-field/)
by [RSS](https://plugins.trac.wordpress.org/log/redirect-by-custom-field/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Added new “hide redirects” filter in the list of posts/pages.

#### 0.9

 * New placeholder function:
    - `%home%` and `%site%` in URLs are replaced by the WordPress home URL and site
      URLs, respectively.
    - New filter `redirect_by_custom_field_placeholders` to add or modify placeholders.

#### 0.8

 * Removed inappropriate `esc_url` which was messing up some redirects.
 * New user-definable constant `REDIRECT_BY_CUSTOM_FIELD_HTTP_STATUS`.

#### 0.7

 * Rewritten to use the `template_redirect` action instead, which catches some edge
   cases.

#### 0.6

 * WordPress’s own permalinks in the WordPress admin now are actually displayed,
   together with the redirect URL.

#### 0.5

 * Fixed a potential PHP warning
 * Fixed an error in the query filter

#### 0.4

 * Fixed redirect in some direct URL access cases
 * Properly sanitizes redirect URLs

#### 0.3

 * First public release

## Meta

 *  Version **1.0**
 *  Last updated **13 years ago**
 *  Active installations **600+**
 *  WordPress Version ** 3.1 or higher **
 *  Tested up to **3.7.41**
 *  Language
 * [English (US)](https://wordpress.org/plugins/redirect-by-custom-field/)
 * Tags
 * [alias](https://en-au.wordpress.org/plugins/tags/alias/)[custom field](https://en-au.wordpress.org/plugins/tags/custom-field/)
   [redirect](https://en-au.wordpress.org/plugins/tags/redirect/)[url](https://en-au.wordpress.org/plugins/tags/url/)
 *  [Advanced View](https://en-au.wordpress.org/plugins/redirect-by-custom-field/advanced/)

## Ratings

 4.8 out of 5 stars.

 *  [  4 5-star reviews     ](https://wordpress.org/support/plugin/redirect-by-custom-field/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/redirect-by-custom-field/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/redirect-by-custom-field/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/redirect-by-custom-field/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/redirect-by-custom-field/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/redirect-by-custom-field/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/redirect-by-custom-field/reviews/)

## Contributors

 *   [ mitcho (Michael Yoshitaka Erlewine) ](https://profiles.wordpress.org/mitchoyoshitaka/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/redirect-by-custom-field/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://tinyurl.com/donatetomitcho)