One of the things to worry when chaning URL’s in any website is keeping social proof in past shared links, keeping sure that these are still valid and still counted when users visit a page.
Plugins like digg digg, or sharethis help us with this but the way they worked is based on the exact URL that was shared. So for example if someone has 100 shares on facebook on a blog post for example if they change URL these buttons will be down to zero again.
The trick is to keep post the “old URL” even if the URL has changed.
I had recently this situation in wordpress and I decided to post the solution here for the plugin I was using (digg digg) as I tried to find an easy solution online but found none.
So I changed the URL’s from the default wordpress URL (?p=post_id) to a very simple (/post-name). The trick was hacking the file digg-digg.php in function dd_hook_wp_content . Chaging to the following lines :
So this hopefully fixes it for you guys, any question feel free to ask!.