Title: Remove WP Shortlink
Last modified: August 21, 2016

---

# Remove WP Shortlink

 *  [kakers88](https://wordpress.org/support/users/kakers88/)
 * (@kakers88)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/remove-wp-shortlink/)
 * For some odd reason wp.me is redirecting back to an old domain that was changed
   5 months ago and is expired. I checked in my database on myPHPadmin and wp-config
   and they both have the current url.
 * `remove_action( ‘wp_head’, ‘wp_shortlink_wp_head’);`
 * Nothing happened, so I altered it a bit to this
 *     ```
       remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); // removing the default shortlink
       add_action( 'wp_head', 'bilty_shortlink_head'); // adding the new bit.ly shortlink
   
       function bilty_shortlink_head() {
       	global $post;
       	$shortURL = get_post_meta($post->ID, 'bitlyURL', true);
       	if(!empty($shortURL)) {
       		echo '<link rel="shortlink" href="'.$shortURL.'" />'."\n";
       	} else {
       		echo '<link rel="shortlink" href="'.get_bloginfo('url').'?p='.$post->ID.'" />'."\n";
       	}
       }
       ```
   
 * With no success in removing wp.me. Has anyone found success in removing it?

Viewing 1 replies (of 1 total)

 *  Thread Starter [kakers88](https://wordpress.org/support/users/kakers88/)
 * (@kakers88)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/remove-wp-shortlink/#post-5137944)
 * Solution: JetPack > Settings > WP.me Shortlinks (bottom of page) > Deactivate.
 * Still not sure why it used an old and expired domain.

Viewing 1 replies (of 1 total)

The topic ‘Remove WP Shortlink’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [kakers88](https://wordpress.org/support/users/kakers88/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/remove-wp-shortlink/#post-5137944)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
