Title: Shortlinks By Path
Author: aizatto
Published: <strong>April 24, 2010</strong>
Last modified: April 24, 2010

---

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/shortlinks-by-path.svg)

# Shortlinks By Path

 By [aizatto](https://profiles.wordpress.org/aizatto/)

[Download](https://downloads.wordpress.org/plugin/shortlinks-by-path.0.1.zip)

 * [Details](https://wordpress.org/plugins/shortlinks-by-path/#description)
 * [Reviews](https://wordpress.org/plugins/shortlinks-by-path/#reviews)
 *  [Installation](https://wordpress.org/plugins/shortlinks-by-path/#installation)
 * [Development](https://wordpress.org/plugins/shortlinks-by-path/#developers)

 [Support](https://wordpress.org/support/plugin/shortlinks-by-path/)

## Description

Shortlinks By Path hooks into the WordPress filter `get_shortlink` to only return
the path for a shortlink. This makes it easier to retrieve the shortlink url with
an absolute path minus the domain name.

By default WordPress returns the full path to your post when clicking “Get Shortlink”.
Shortlinks By Path returns only the path. For example, by default WordPress would
return `http://blog.aizatto.com/?p=3565` , with Shortlinks By Path enabled WordPress
returns `/?p=3565` .

### How It Works

Shortlinks By Path hooks into the WordPress filter `get_shortlink` to only return
the path for a shortlink.

### Why I Created It

I needed WordPress to return the path for a given post because it was easier to 
migrate WordPress installations across different domains, as there would be no broken
internal links. For example, migrating from a development internal site, to a production
live site.

## Screenshots

[⌊Shortened Path⌉⌊Shortened Path⌉[

Shortened Path

## Installation

 1. Upload the `shortlinks-by-path` folder into your plugin directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Shortlinks By Path” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ aizatto ](https://profiles.wordpress.org/aizatto/)

[Translate “Shortlinks By Path” into your language.](https://translate.wordpress.org/projects/wp-plugins/shortlinks-by-path)

### Interested in development?

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

## Changelog

#### 0.1

 * Initial version

## Meta

 *  Version **0.1**
 *  Last updated **16 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 3 or higher **
 *  Tested up to **3**
 * Tags
 * [category](https://wordpress.org/plugins/tags/category/)[page](https://wordpress.org/plugins/tags/page/)
   [pages](https://wordpress.org/plugins/tags/pages/)[post](https://wordpress.org/plugins/tags/post/)
   [posts](https://wordpress.org/plugins/tags/posts/)
 *  [Advanced View](https://wordpress.org/plugins/shortlinks-by-path/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/shortlinks-by-path/reviews/)

## Contributors

 *   [ aizatto ](https://profiles.wordpress.org/aizatto/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/shortlinks-by-path/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=aizat%2efaiz%40gmail%2ecom&lc=MY&item_name=Ezwan%20Aizat%20Bin%20Abdullah%20Faiz&item_number=Shortlinks%20By%20Path&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)