About

require_once($_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-config.php’);
add_action(‘get_header’, ‘redirect’);
function redirect (http://about.me/helmi_mokhtar) {
global $post;
if (is_page() || is_object($post)) {
if (get_post_meta($post->ID, ‘redirect’, true)) {
header(‘Location: ‘ . get_post_meta($post->ID, ‘redirect’, true));
}
}
}
// yeah, that’s the whole plugin.
// great, aint it?
?>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s