WordPress plugin: Permalinks Moved Permanently

Installing PHP GD support on OS XIf you just migrated your WordPress blog from one permalink structure to another, and you don’t want to lose the traffic that accesses your blog through the old permalinks, this is for you.

Right before the old permalink generates a 404, this simple plugin grabs the slug from the end of the request and checks if there’s a post with this slug living somewhere else on your blog. If so, it will generate a “301 Moved Permanently” error, and forward your user to the new location of your post. It’s simple, but effective.Installation:

  1. Download the plugin.
  2. Upload the plugin to your wp-content/plugins directory.
  3. Activate the plugin.

That’s it, enjoy.

Related Posts

Comments (253)

  • DG

    July 31, 2007 (12:14 am)

    Sound nice and cool, it’ll be quite handy, if some one has changed URL more than once.

    DG…
    http://www.ditii.com

  • Pingback by Wordpress 備份與恢復記錄 [JeffHung.Blog]

    [...] 來連,就要自動用 HTTP status code 301 Moved Permanently 轉址到新的 permalinks。Permalinks Moved Permanently 這個 wordpress plugin [...]

  • CarpetGuy

    December 25, 2007 (4:44 pm)

    Hello, I upgraded my blog, updated my plugins, and as the link below shows, my permalink structure got changed. I installed your plugin, but that doesn’t seem to work either. The top link is how they were setup, but to get my blog to work at all, I had to change it to the default, the bottom link. Please advise, thanks.

    http://homebrewfanatic.com/blog2/2007/12/24/blogged-by-bad-ben-on-tap-plans-and-smokestack-series/

    http://homebrewfanatic.com/blog2/?p=62

  • Microkid

    December 25, 2007 (5:03 pm)

    Hi CarpetGuy. The reason it’s not working seems to be that the a loop of redirects occurs. Are you using any other redirect-related plugins?

  • CarpetGuy

    December 25, 2007 (10:41 pm)

    No, at least I don’t know of any, this all happened after upgrading from WP 2.02 to 2.31 I have even tried disabling all plugins, but nothing helps, what can I look for? There must be something I haven’t found that got changed with the new release, again, thanks

  • Microkid

    December 25, 2007 (10:58 pm)

    What version of my plugin are you running? I remember this problem occuring with an older version.. Current version is 1.1.1

  • CarpetGuy

    December 25, 2007 (11:22 pm)

    I installed your plugin after this all happened, to try and remedy the situation, but I have 1.1.1

  • Microkid

    December 26, 2007 (4:12 am)

    Do your permalinks work at all? Could it be a problem with your htaccess file?

  • CarpetGuy

    December 26, 2007 (7:11 am)

    I have a feeling that you are right, yahoo is my host and you can’t upload any hidden files. Almost all of the links work if you go to the site http://homebrewfanatic.com/blog2/ and then click on a permalink, archive etc. But any of the indexed pages wont work using the changed link system. If yu go back up to those links, you see the difference. I just don’t know what eklse to try, I have uploaded any plugin I could find that might help, such as yours, but nothing works. I really appreciate your help

  • CarpetGuy

    December 26, 2007 (8:39 am)

    Ok, when I go to manage/files and open the htaccess file, it is basically empty! All that is there is this

    # BEGIN WordPress

    # END WordPress

    Is that right? Can you get me the code that goes in there? I have hunted everywhere, but I have only found things to add to it, maybe it should be blank? Does this ring any bells?

  • Microkid

    December 26, 2007 (10:30 am)

    You can find whatever should be in your .htacces under Options>Permalinks in your WP admin panel. So change the permalinks structure, and then copy paste whats on the bottom of the page to your htaccess file.

  • CarpetGuy

    December 26, 2007 (12:32 pm)

    Ok, I will try that. I am going to paste the following between the two tags in my last post.

    # BEGIN WordPress
    /%year%/%monthnum%/%day%/%postname%/
    # END WordPress

    So, now that is what is there, does that look right?

    Thanks for your help

  • CarpetGuy

    December 26, 2007 (12:37 pm)

    nope, that didn’t do it. I have already called my host, they can’t figure it out either, it is amazing, this kind of stuff always happens to me. I guess I am just special…….If you have any ideas, let me know.

    Again, thanks

  • Microkid

    December 26, 2007 (4:26 pm)

    Make sure you have yout permalinks set to “date and name based” and put this in your htacces file:

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    If that doesn’t work, ask your host if mod_rewrite is enabled for your website.

  • CarpetGuy

    December 26, 2007 (11:14 pm)

    Ok, Itried that, it didn’t work. Yahoo is on it and I sent them a link to this page so they can see what we tried. Since Christmas is finally over I am going to see if I can find more at WordPress again, thanks

  • Microkid

    December 26, 2007 (11:54 pm)

    ok good luck mate. If it does turn out to be a problem with the plugin please get back to me.

  • CarpetGuy

    December 27, 2007 (1:21 am)

    I bet it is another typical issue with yahoo not allowing any file that starts with a “dot”. I have been searching for answers everywhere, and so far the only advice I have been given consistently is to switch hosts! I have been with yahoo since 2001 and anytime you want to upgrade phpBB, wordpress etc, these problems occur, again thanks for your help.

  • Alexander

    January 22, 2008 (12:14 am)

    Hi.
    First of all, it is very handy plug-in and thank you for doing it.

    I am afraid, I am suffering from the same problem. I changed the structure of the permalinks on my web-site and now http://www.alexandersandler.net/g15dod takes me (and anyone interested) to 404 instead of http://www.alexandersandler.net/stuff/software-projects/g15dod
    And I am not Yahoo subscriber :-) Any ideas?

    Thanks!

  • Microkid

    January 22, 2008 (1:11 am)

    Hi there Alexander!

    Thanks for your feedback. I think I know what’s going on… Your old permalink structure did not contain a category name or anything between your domain and the posts slug. Appearently my plugin doesn’t know how to handle this. See how the plugin does work when u put something in between:
    http://www.alexandersandler.net/foo-bar/g15dod

    I’m pretty sure I can come up with a quick solution. Gimme a day or two and check back here.

  • Microkid

    January 22, 2008 (1:28 pm)

    Alexander,

    I’ve uploaded an updated version here. Can you check if this solves your problem?

  • Alexander

    January 22, 2008 (1:52 pm)

    Hi.

    This version works as expected. Thanks a lot for fixing it!

  • Pingback by Permalinks Moved Permanently_Wordpress plugin

    [...] Plugin Homepage [...]

  • Pingback by Permalinks Moved Permanently: Updated to version 1.2

    [...] Alexanders feedback, I fixed a bug in the WP plugin “Permalinks Moved [...]

  • Pingback by Permalink Migration Redirect for Wordpress Plugins | Sha Money Maker

    [...] Permalinks Moved Permanently by Microkid [...]

  • Innovation Catalyst

    February 4, 2008 (5:14 pm)

    Microkid –

    I think I understand how this works. But over on WordPress.org they suggested this plugin to solve a problem, and I’m not sure your plugin works this way.

    I am migrating my blog from WordPress.com to a new server running the latest WordPress software, via the native export-import functions. This generated two problems:

    1. Permalinks from WordPress.com blog need to be redirected, but nothing exists to do this automatically

    2. Permalinks for internal links in my posts need to be changed to reflect new permalink structure in new blog.

    Your plugin was recommended to fix Problem 2. I don’t see how this would work, considering the link now points to my old blog’s permalink, unless I delete the old blog. Or would that work with your plugin at all?

  • Microkid

    February 5, 2008 (2:06 am)

    Hi Innovation Catalyst,

    Yes it can help you with at least half of the solution for your second problem. And I know how the fix the other half as well.

    First, you need to change the domain as used in links that are hardcoded in your content. This can be done by either manually going through all your posts, or automatically by firing an SQL query directly at your MySQL database. If you do not have a lot of experience with this, please be very very careful. Make sure you backup everything and test thoroughly afterwards. A single typo can screw up your entire blog, forever.

    I hope you can find a way to directly speak with your MySQL database, perhaps you have a phpmyadmin install on the server you can use. Just, make very very very VERY sure that you know what your doing. If not, consider asking someone more experienced to do it for you. I just want to make sure that you know that I do not take any responsiblity if something goes wrong. And again, make that backup! And make sure it’s an SQL backup, not just a WordPress backup.

    Anyways, with that out of the way, use this query to change all the references to your old domain in the content of your posts:

    UPDATE wp_posts SET post_content = REPLACE (
    post_content,
    ‘opensourceinnovation.wordpress.com’,
    ‘open-source-innovation.com’);

    Ok, so now all the links in your content will direct to your new sites URL. For instance a link to this article:

    http://opensourceinnovation.wordpress.com/2008/01/22/three-amazing-reports-on-the-state-of-innovation-part-i/

    will now look like this:

    http://open-source-innovation.com/2008/01/22/three-amazing-reports-on-the-state-of-innovation-part-i/

    As you can see however, this triggers a 404. The domain part is OK, but the rest of the permalinks still needs to be fixed.

    And that’s where my plugin comes in. When you install it, right before displaying the 404, it will first check the database for a post that has the slug “three-amazing-reports-on-the-state-of-innovation-part-i”. It will find the post, and redirect the user to

    http://open-source-innovation.com/three-amazing-reports-on-the-state-of-innovation-part-i/

    Which does work.

    Please let me know if this fixes your problem. And congratulations with your very own WordPress installation. Looks like a great site!

  • Innovation Catalyst

    February 5, 2008 (2:30 am)

    Microkid

    Thanks for the help. Would doing an export from the new blog, creating an XML file, constitute a backup? I can just import it if things screw up, no?

  • Microkid

    February 5, 2008 (2:36 am)

    Hi,

    Yeah I think so. But the problem is that if something goes wrong and you need to replace all the posts, you will have to manually delete everything from your blog first. Otherwise you’ll have duplicate data (posts, pages, comments, etc.)

    When using the SQL backup, you can just drop the entire database and then use the SQL dump to revive it from scratch.

  • Innovation Catalyst

    February 5, 2008 (3:03 am)

    I get this error when I run the query:

    #1054 – Unknown column ‘‘opensourceinnovation.wordpress.com’’ in ‘field list’

    Database intact.

  • Microkid

    February 5, 2008 (3:08 am)

    Seems like the quotes in the query are copy pasted as smart quotes – make sure they are plain quotes.

  • Innovation Catalyst

    February 5, 2008 (3:58 am)

    OK, query ran, executed the edit.

    I uploaded your plugin, activated, but can’t get it to work yet.

    To test, I clicked on this link in an article:

    http://open-source-innovation.com/2008/01/22/three-amazing-reports-on-the-state-of-innovation-part-i/

    and got the 404 message. Here is the page slug for that article:

    three-amazing-reports-on-the-state-of-innovation-part-i

  • Innovation Catalyst

    February 5, 2008 (5:24 am)

    Never mind, working now. Thanks for all your help.

    IC

  • Kosol

    February 18, 2008 (11:03 pm)

    I’ll try for my blog. Thank you.

  • Tom

    February 19, 2008 (12:24 am)

    These issues may be something I haven’t done or haven’t done right . . . but I haven’t a clue how to do it.

    Thoughts?

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/.sausage/tailspin/undress4success.com/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 696

    Warning: file_get_contents(http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/.sausage/tailspin/undress4success.com/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 696

    Upgrade failed: Could not download distribution (http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip)

  • Microkid

    February 19, 2008 (9:40 am)

    Hi Tom,

    I’m not sure why you’re asking this here because I believe you are trying to update the All-In-One-SEO-Pack plugin.

    Anyways, the error you posted has to do with All-In-One-SEO-Pack’s auto-update feature. It’s trying to grab an update file from the wordpress site using the file_get_contents function. Normally this function can grab files over the internet but on your webserver this features has been disabled, probably for security reasons.
    So u can either talk to your hosting company or just manually update, the latter probably being the quickest option.

  • Tom

    February 19, 2008 (8:00 pm)

    Yike! Too many hours in front of the tube (er, TFT) friend my brain. I dunno why I posted this here either! But I do appreciate your polite and helpful answer. “Buzz off noob” would have been appropriate under the circumstances..

  • Microkid

    February 19, 2008 (8:32 pm)

    No problem :)

  • Tom

    February 19, 2008 (10:54 pm)

    fried, FRIED!

  • Tom

    February 20, 2008 (12:11 am)

    Now I see why I was here, I have PMP plugin installed but it doesn’t seem to be working. Nuttin’ to do with All-in-one-SEO, you got hit with a ricochet.

    Anyway, the old permalink, now preserved for eternity on some other website is
    http://undress4success.com/2008/02/13/work-at-home-scams/

    But the actual page is now
    http://undress4success.com/work-at-home-scams/

    Those were both copy/paste of actual, so it’s not a typo issue.

    If you go here
    http://www.workwhistle.com/blog/entry/16683/scambusting-work-at-home-opportunities
    and click on the link you’ll see what (doesn’t) happen(s). You get our version of the 404 error, so PMP doesn’t seem to catch it.

    I’m using v1.2, and yes it is activated ;-)

    htaccess looks like this

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    And looks as if it’s date and name based, as you describe above. Buy I’m using just the slug. Is this the root of the problem?

    Thanks for investing your time in this great tool and responding to pleas for help, especially when the problem is probably self inflicted.

  • Microkid

    February 20, 2008 (12:22 am)

    The way you’ve set it up should work. This for instance does work properly:

    http://undress4success.com/blahblahblah/work-at-home-scams/

    What other slug/redirection/permalink related plugins are you using? Perhaps there’s an issue there.

  • Tom

    February 20, 2008 (1:10 am)

    None, sorry to say. Here’s the file list from the plug-in folder. Do you recognize any that may interfere that I’m not aware of?

    adsense-manager
    akismet
    all-in-one-seo-pack
    amazon-showcase-wordpress-widget
    cforms
    enhanced-links
    get-recent-comments
    google-sitemap-generator
    hot-linked-image-cacher
    if-you-liked-that
    permalinks-moved-permanently
    seo-slugs
    simple-tags
    SpreadThis
    subscribe-to-comments
    ultimate-google-analytics
    wassup
    wp-footnotes
    wp-statpress

  • Microkid

    February 20, 2008 (9:23 am)

    Hmm no not really. I don’t know man, could be anything. Are you sure you have the latest version?

  • Tom

    February 20, 2008 (11:29 pm)

    Plug-in page shows v1.2, sure ’nuff.

    Weird.

    But thanks for thinkin’ on it with me.

  • Microkid

    February 21, 2008 (12:12 am)

    I’ll keep an eye out for a solution, I’ll let you know if I find one.

  • Tom

    February 21, 2008 (2:54 am)

    Ah-HAH!

    I think it has something to do with the number of / characters in the permalink.

    Your
    http://undress4success.com/blahblahblah/work-at-home-scams/
    worked but
    http://undress4success.com/blah/blah/blah/work-at-home-scams/
    doesn’t.

    Ring any bells?

  • Microkid

    February 26, 2008 (7:59 am)

    Hmm… it still has to do with some kind of conflict tho. Here, as you can see the plugin should be able to handle it:

    http://www.microkid.net/bla/bla/bla/bla/permalinks-moved-permanently/

    What happens when you deactivate all other plugins installed? Does it work then?

    If it does, activate them again one by one and keep testing the permalinks, and you’ll find out where the problem is.

  • Tom

    February 26, 2008 (9:38 pm)

    Newp. Sadly, and perversely deactivating all plug-ins (except PMP) did solve the problem.

    I’m perfectly willing to admit this problem may be something dumb I’ve done—or not done, so I’m particularly appreciative of your continuing willingness to help solve it.

    Just for good measure I downloaded and reinstalled the plugin. I assume that like the rest of them, it should be in its own folder right, not just sitting there naked in the plugins directory?

  • Tom

    February 26, 2008 (10:32 pm)

    Shees! I can’t write! Let’s try that again . . .

    Newp. Sadly, and perversely, deactivating all plug-ins (except PMP) didn’t solve the problem.

    I’m perfectly willing to admit this problem may be something dumb I’ve done—or not done, so I’m particularly appreciative of your continuing willingness to help solve it.

    Just for good measure I downloaded and reinstalled the plugin. I assume that like the rest of them, it should be in its own folder, not just sitting there naked in the plugins directory, right?

  • Microkid

    February 27, 2008 (8:22 am)

    I think I figured it out. Can you install this version and see if it works:

    permalinks-moved-permanently-2.1b.zip

  • Tom

    February 27, 2008 (3:00 pm)

    Better! It seems to see the slug, and I don’t get the 404 error page.

    But it takes me to the home/most recent post page, not the article with the same slug.

    Progress! Good job!

  • DJSlim

    February 27, 2008 (11:18 pm)

    I have installed and activated the plugin since my permalinks had to change for an unfortunate reason.

    Permalink structure is now

    http://slimtainment.com/idolblog/?p=1210

    Old Structure was

    http://slimtainment.com/idolblog/1210

    The plugin still shows a 404 and redirects to the main index page. any thoughts on this??

  • DJSlim

    February 28, 2008 (12:18 am)

    I figured it out another way without the plugin :)

  • Microkid

    February 28, 2008 (12:40 am)

    Tom – I’m still working on a solution. Just know that it has nothing to do with your settings or anything, there’s a compatibility problem with wordpress 2.3.3 I’m gonna look into it when I get the time.

  • Tom

    March 2, 2008 (1:28 am)

    Great, thanks!

  • Tom

    March 5, 2008 (3:58 am)

    Any progress?

  • Tom

    March 12, 2008 (8:29 pm)

    Bump?

  • William Teach

    April 2, 2008 (2:07 pm)

    Unbelievably awesome plugin, Microkid. I have been looking to change from the numbers based permalinks to word description ones for awhile now, and did not want to make all those old links not work.

    It is really important now, if someone changes, because with 2.5, rather then kicking a 401, or just back to the main page, you get a 500 error.

    Plugin working like a charm. Thanks!

  • Microkid

    April 2, 2008 (2:12 pm)

    Tom – Sorry, haven’t had much time to look into it.. I will soon!

    William – thanks ;)

  • Pingback by WordPress SEO Tipps und Plugins » Beitrag » WordPress Magazine

    [...] Permalinks moved permanently [...]

  • Pingback by Neue Permalinkstruktur @ Dave’s Blog

    [...] und gewächselt. Damit die alten Links aber immer noch funktionieren habe ich das Plugin “Permalinks Moved Permanently” im Einsatz. Das sollte alle Links automatisch weiterleiten (soweit ich getestet habe [...]

  • Wayne

    April 27, 2008 (1:45 pm)

    Before I installed your plugin, I got 302 redirects to my posts from the old /?p=N structure. Turning it on didn’t change that – still 302, not 301. It looks like it never gets to your code. What am I doing wrong here?

  • Wayne

    April 27, 2008 (1:57 pm)

    Never mind – I found another plugin that did what I wanted.

  • Pavel

    April 28, 2008 (7:18 pm)

    Hello!
    I am using a plugin
    /*
    Plugin Name: WP-DownloadManager
    Plugin URI: http://lesterchan.net/portfolio/programming.php
    Description: Adds a simple download manager to your WordPress blog.
    Version: 1.00
    Author: Lester ‘GaMerZ’ Chan
    Author URI: http://lesterchan.net
    */

    After I activated PNP this plugin started to work wrong. The link to download file in this plugin looks like “http://www.exchangerus.ru/download/4/”
    Is it possible to tell PMP don’t process page if reguest is “http://www.exchangerus.ru/download/*”?

  • baron

    May 6, 2008 (5:19 pm)

    hi there .thanks for plugin:

    Does anybody know if tis script is compatible with WordPress 2.5.1 ?

    Thanks in advance for any help on this!

    best regards

    baron

  • Microkid

    May 10, 2008 (2:24 pm)

    @Pavel

    It seems that the download manager has some strange behaviour. PMP is initiated after a 404 is triggered. Appearently your download manager plugin does the same, although it would make more sense if it used the WP rewrite engine instead.

    @ Tom

    I have a beta version that hopefully solves your problem. Can you please check if it works and let me know? Download it here:

    http://www.microkid.net/software/permalinks-moved-permanently-1.3b.zip

    Thanks!

  • Tom

    May 10, 2008 (6:51 pm)

    Worked!

    Thanks very much for #1 creating the plug-in, and #2 fixing this vexing problem.

    My hero!

  • Microkid

    May 11, 2008 (2:19 pm)

    Excellent, thanks for your feedback.

    I’ll release the new version in the upcoming days.

  • Pingback by “Permalinks Moved Permanently” Wordpress plugin updated

    [...] It has been updated to 2.5 compatibility. Download it here. [...]

  • Pingback by Changing the URL of your WordPress blog | RyanTAdams.com

    [...] plug-ins you have that even remotely depend on your blogs URL. For me, this meant disabling “Permalinks Moved Permanently” and “Hotlink Protection” along with several custom plug-ins I had [...]

  • Walt

    May 19, 2008 (9:42 am)

    Hi. I’m looking for something and I think your plugin fits the bill. But, I just wanted to be absolutely certain.

    My current links structure is

    domain.com/postname

    I want to modify it to

    domain.com/category/postname

    Am I correct that your plugin is the ticket?

  • Microkid

    May 19, 2008 (11:38 am)

    Hi Walt,

    Yeah it works (tested on WordPress v2.5.1).

  • Shirley

    June 3, 2008 (12:40 am)

    Hi. I’m not sure that I’m doing this correctly. I’ve moved my older website to wordpress.org and I need to have a few links forwarded.
    One of the pages is a direct copy from my old website. I tried typing in the old address to see if it redirects, but it didn’t. I just tried emptying the cache and then pasting the old address directly into the content of the new page and it still didn’t redirect.
    What do you think?

    The old address is:
    http://www.ticktots.com/Site/Gringos_Blog/Entries/2008/1/1_Healthy_for_humans,_deadly_for_dogs.html

    The new address is: http://www.ticktots.com/?page_id=185

    Thanks!
    Shirley

    P.S. all other plugins were inactivated and I’m using wordpress 2.5.1

  • Shirley

    June 3, 2008 (4:08 am)

    OK, I think I’m getting closer. I found out how to change the new permalinks for date and entry title and I’m getting onto the site, but page not found…
    The new permalink is:
    http://www.ticktots.com/2008/02/11/healthy-for-humans-deadly-for-dogs/

  • Microkid

    June 3, 2008 (9:09 am)

    Hi Shirley,

    It appears your old site is not a wordpress site, correct? This plugin only works when you change your permalinks structure in wordpress. But there’s another plugin that helps you to manually map your old links to the new ones, it might be the solution for you:

    http://wordpress.org/extend/plugins/redirection/

  • Shirley

    June 3, 2008 (5:19 pm)

    Thanks! I saw that one earlier but it says that it works up to wordpress 2.3.3 and I have 2.5.1. I’ll try it out anyway. If not, at least yours get to the new website without a 404 or 301 or whatever it is.
    Thanks again!
    Shirley

  • Pingback by Migrate permalink structure | iCalvyn.com

    [...] using “Permalink moved permanently” plugin from Microkid, will solve your problem while you change permalink structure. Example [...]

  • Walt

    June 11, 2008 (8:00 pm)

    Wow. Although I’m not sure how, this worked like a charm. I tried a couple other similar plugins, but they just caused me a lot of headache. Thanks for the great script.

  • Walt

    June 11, 2008 (8:06 pm)

    Uh oh. Spoke too soon. I didn’t test thoroughly enough. I migrated from /%postname to /%category%/%postname. When I try the old permalink style I get a nasty 404 error.

  • Microkid

    June 11, 2008 (8:15 pm)

    Hi Walt,

    Hmmm… that’s odd, it should work. Any other rewrite/permalink related plugins you’re running?

  • Walt

    June 11, 2008 (9:22 pm)

    Can you explain this…? (I swear it’s true!!) I decided to “debug” the plugin in my own plodding way.

    First I added

    echo ‘slug: ‘.$slug;

    at the top to make sure that was a valid value. There were some ‘header’ issues, but the slug value looked good.

    So, I went a bit further into the plugin (just before the rewrite occurs) and added

    echo ‘ID: ‘.$ID;

    to make sure it was still on track. Same ‘header’ hiccup, but it had a post ID value.

    Finally, I decided to see what the new permalink value was, so I added

    echo ‘new: ‘.the_permalink($ID);

    right after your code does the get_permalink( $ID );

    Imagine my surprise when it started redirecting properly! I removed that line, it stopped working. I added it back in, it started working again. I removed the ‘new: ‘ from the echo, it stopped working. I added it back in, it started working.

    After trying as many combinations I could think of, I’ve settled with

    echo ‘:’.the_permalink($ID);

    which seems to be the minimum that allows the plugin to work.

    If you can figure out what’s going on, more power to you.

    (In answer to your question, yes I had John’s Redirection plugin going prior to loading your plugin, but I deactivated it while I was testing).

  • Microkid

    June 11, 2008 (9:35 pm)

    Wow, that’s weird.. All I can think of is maybe a problem in the HTTP headers.

    But hey, if it works… :)

  • Walt

    June 11, 2008 (10:15 pm)

    Well, I haven’t upgraded this blog to 2.5 yet. I guess we’ll see what happens when I do that. If it’s something in WP, I guess I’ll find out.

    You don’t suppose it could be a theme issue..? It’s a theme I tried out for this particular blog that’s a bit different than some others I’ve tried

  • Microkid

    June 11, 2008 (10:21 pm)

    What version of WP are you running now?

    After updating, you might get this error:

    “Warning: Cannot modify header information – headers already sent”

    If, so just change the plugin to the original.

    I doubt it has something to do with your theme. What’s different about it?

  • Walt

    June 11, 2008 (10:59 pm)

    2.3.3

    The theme has a bunch of built in functions like a breadcrumb trail, and some “creative” CSS functionality.

  • Erika

    July 17, 2008 (5:20 am)

    Your plugin rocks. I updated to permalinks after moving my blog to it’s own server from the wordpress.com server. It’s still a young blog so not too many posts to deal with but figured if I was going to go through pain might as well do it all at once!

    I tried two other redirect plug ins before finally finding yours, and it did not work either at first…. until I saw your post about the category not being read correctly in the url (I was using category/postname in my permalinks…and installed your beta update. Now…perfection. Love it.

    My question is, how will I know when you do regular updates or improvements?

    Do you have an email list to notify users of updates?

    Thanks, Erika

  • Microkid

    July 17, 2008 (8:38 am)

    Hi Erika,

    Glad you find my plugin useful.

    If there is an update, the WordPress back-end will tell you automatically; a small alert will appear above the “plugins” menu item.

    You can also subscribe to my RSS feed to stay updated about all plugins I’m working on.

    Good luck with your site!

  • Abi

    July 26, 2008 (2:49 am)

    I’m so jealous of those who are getting this plugin to work!

    I am helping out my cousin — her blog’s permalink structure is currently NOT the default — it is: “http://www.myblogname.com/archives/123″

    and we want to change to:
    “http://www.myblogname.com/2008/07/sample-post/”

    It is a fairly popular blog with a lot of people linking to specific posts, but until we can solve the 404 error, she’s stuck with the permalink structure she has.

    I installed the latest version of this plugin (she has WP 2.6, btw), activated it, and then checked another site that has a link to her blog and no luck — I got a 404. Her .htaccess file is fine, because from within her blog her permalinks are working just fine.

    What am I doing wrong? Does this plugin not work when the original permalink structure is not the WP default?

    Any help is GREATLY appreciated.

  • Microkid

    July 26, 2008 (10:40 am)

    Hi Abi,

    I think I know what the problem is. Can you download this version and tell me if it works?

    thanks

  • Herve

    July 31, 2008 (9:22 am)

    Thank you for your plugin. It’s guy like you who make WordPress the best blogging plateform out there…

    Hervé

  • Pingback by Wordpress 2.6 ile uyumlu eklentiler | alpibo

    [...] Permalinks Moved Permanently 1.3 [...]

  • Allen

    August 16, 2008 (3:04 am)

    Your plugin is fricken’ brilliant! I’m testing it out on a completely new wordpress blog (www.recoveredrecipes.com) just to see how it works.

    I have an older blog that I hope to move from blogger to wordpress once I know with some certainty I can redirect successfully. In testing it, it doesn’t seem to handle my main use case. Here is an example of my issue:

    Old URL: http://www.recoveredrecipes.com/2008/08/green-tomato-pie/

    New URL: http://recoveredrecipes.com/index.php/2008/08/green-tomato-pie/

    The main issue is that my new URL structure must contain ‘index.php’ which seems to break your redirect. Is there a workaround or some way I can get this to work?

    Thanks — I appreciate it!

  • Pingback by Schweizer WordPress Magazin » Beitrag: Alte Beiträge wieder auf die Startseite bringen

    [...] verlinkt hat, wird er dann blöd aus der Wäsche gucken. Das heisst, man muss ein Plugin wie das Permalinks Moved Permanently Plugin installieren. Ansonsten sollte es keine Probleme [...]

  • Allen

    August 20, 2008 (2:16 am)

    I’ve been trying out a few 301 redirect plugins and I like the simple plug-n-play of yours — great job!

    I intend to transfer my primary blog to wordpress once I know that I will have a 301 solution that works. I am testing out your plugin on a new blog that I created solely on wordpress (2.6). One additional piece of info to note is that I use yahoo for my web hosting and have a manual install of wordpress.

    Old: http://www.recoveredrecipes.com/2008/08/lemon-sponge-pie/
    New: http://recoveredrecipes.com/index.php/2008/08/lemon-sponge-pie/

    Because of yahoo, I am forced to use ‘index.php’ as part of my permalink structure and assume this is what causes the issue. Your redirect works well if there are permutations with my new url structure for either the year or month variables. The change in path from my old url to new url is not handled though and throws a 404.

    Is there a workaround that would point my old URL to the new one? I’ve been banging my head against the wall the past few days and hope you might be able to shed some light on this for me.

    Thanks in advance — Allen

  • Adam

    August 25, 2008 (8:49 pm)

    We migrated our site to WordPress recently and in my naivete, I set the site up with default URLs. Since then, my attempts to use PMP on this site has met with mixed results. It works perfectly in Firefox, when I just used the postname extension, so when I went to the web analytics page under services, for example, it read http://netvantagemarketing.com/services/web_analytics which is exactly how I wanted it to work. The problem is, it doesn’t work in IE6 or IE7. The link structure remains, but it blows up the format of the page on any subpages. Anyone run into this and know of any good fixes?

  • Microkid

    August 27, 2008 (8:21 am)

    Allen,

    I’m sorry, there is no fix for that. The only solution would be to change your hosting provider. This would be a good idea in general because Yahoo is not very WordPress compatible.

  • Microkid

    August 27, 2008 (8:25 am)

    Adam,

    This has nothing to do with this plugin; check the paths to your stylesheets in the head of your template.

  • ganes

    September 6, 2008 (1:18 am)

    it’s work for me. thanks

  • 7ota

    September 21, 2008 (11:48 pm)

    Thanx its work fine with me !!

  • Pingback by Wordpress Permalinks umstellen | Bennis Welt

    [...] auf welche schon mal verlinkt wurde nicht mehr gefunden werden.  Das Problem lässt sich mit dem Permalinks Moved Permanently Plugin lösen. Dazu muss aber Apache mit mod_rewrite laufen und eine .htaccess Datei im WordPress [...]

  • enekly

    October 14, 2008 (11:08 am)

    Занимаюсь дизайном и хочу попросить автора http://www.microkid.net отправить шаьлончик на мой мыил) Готов заплатить…

  • Abeon Tech

    October 23, 2008 (1:41 pm)

    Great plugin.

    I setup my blog but didn’t like the default catagory base, so changed it after a month.

    Don’t want to lose the visitors from Digg!

    Thanks ;)

  • archinspire

    November 13, 2008 (3:12 pm)

    It didn’t work for my site. I was trying 1.4c too, but the result still same, didn’t work. What’s going on?

  • borg

    November 26, 2008 (1:14 pm)

    Question:

    The plugin must be activated before changing permalink, or it must be activated after?

    Thanks, hello!

  • slobjones

    December 12, 2008 (8:27 am)

    Is PMP of any value when moving from one blog format to another?

    I recently imported my old blog to WordPress and generated all new links. Since the old blog used a structure consistent with WP’s default urls, I used a 301 redirect to forward the old addresses. I also activated the WP friendly urls (Permalinks).

    A couple of weeks later, Google completely dropped my blog, without indexing the new urls.

    Just wondering if PMP would have been of any use in this situation.

  • Microkid

    December 14, 2008 (1:41 pm)

    Hi Slobjones,

    As of yet it doesn’t forward from the default ?p= type URLs to pretty permalink URLs. So I guess it wouldn’t have been of any use. But if you’re planning on chaning your permalink structure now, you can use this plugin to 301 redirect all your old URLs.

  • Outlet

    December 16, 2008 (10:04 pm)

    Can I add somewhere in wordpress interface which link a want to redirect to another?

    Thanks for reply!

  • Pingback by 4webmasters » Top 1000 WordPress Plugin Authors

    [...] Permalinks Moved Permanently [...]

  • Pingback by En.nicuilie.eu Blogs » Top 1000 WordPress Plugin Authors

    [...] Permalinks Moved Permanently [...]

  • Manuel

    January 13, 2009 (1:20 am)

    Thank you very much. Very useful.

  • Pingback by Welche Plugins laufen unter wireds.de - .wired

    [...] Permalinks Moved Permanently – nach meiner Permalinkstruktur musste ich sichergehen dass die Besucher, die noch über alte Links kamen, keine 404-Seite zu sehen bekommen [...]

  • seo

    February 4, 2009 (10:00 am)

    Hi.

    This version works as expected. Thanks a lot for fixing it!

  • Pingback by Wordpress permalink plugins to make SEO hierarchy URLs | HTML Remix

    [...] of them need to manually add the old and new ULR which is a massive job. Finally I found “Permalinks moved permanently” which automatically redirects both visitors and bots with a 301 permanent redirection [...]

  • Tuan Anh

    February 6, 2009 (8:24 pm)

    Thanks for the greate plugin. I used Dean’s Permalinks Migrations and will have a try with yours.

  • Sinema

    February 12, 2009 (3:39 pm)

    Thank you greet works

  • Jan Peter

    February 17, 2009 (11:58 am)

    Hello

    Thanks for the plugin it works great! Only i have one little question/ problem.

    my old link is
    http://www.url.com/cars/honda civic/1/

    the new url is
    http://www.url.com/lease-car/honda-civic

    The problem is the “/1″ and the space in “honda civic” in the old adress. How can i fix this?

    note:
    if i go to http://www.url.com/cars/honda/
    it goes perfect to http://www.url.com/lease-car/honda-civic
    great!

  • Microkid

    February 19, 2009 (8:50 am)

    Hi Jan Peter,

    The problem is that you’ve changed the slug, so the plugin won’t be able to find the new location of your posts. If you want to solve this, you will have to use a .htaccess file to redirect the user to a the new location. Use something like:


    redirect 301 "/cars/honda civic/1/" /lease-car/honda-civic/

  • erin

    March 8, 2009 (5:07 am)

    Hi,

    I am trying to change my permalinks from the ‘default’ structure to a /%year%/%postname%/ structure.

    I activated the plugin and changed the permalink settings. I couldn’t find a .htacess file, so I created one, as instructed by the Codex. I copied the code WordPress provided into the file and uploaded it to my root folder.

    My permalinks still aren’t working. All I get are 404 Errors. I have no idea what could be wrong. Do you have any advice?

  • Microkid

    March 8, 2009 (11:55 am)

    Erin,

    Are you sure the apache rewrite module is activated on your server? This might be the problem.

  • erin

    March 9, 2009 (6:41 am)

    I contacted my host, Fat Cow, and asked if mod_rewrite was activated, and they replied, saying it was. Assuming they’re telling the truth (I find that their ‘advice’ is usually nothing more than a cut-and-paste style response) what else might be the issue?

  • erin

    March 9, 2009 (7:04 am)

    No to worry, Microkid, I’ve figured out what was wrong! I simply spelled .htaccess “.htacess” when I uploaded the file! Silly me. All fixed now, plugin working perfectly.

  • zplits | What's the latest?

    March 16, 2009 (8:29 am)

    Hi Microkid,

    I have your plugin installed on my blog. But i am having problems with my archives. When I tried to click it in my sidebar, it just refreshes the page, and doesn’t load the specific archive for a particular month.

    Please help me, couldn’t fix it by myself. Hope to hear from you.

    And thank you for creating this great plugin.

  • Shirls

    March 19, 2009 (1:58 pm)

    Hi Microkid,

    Firstly, really thank you for your work in this plugin, it is exactly what I was looking for ! :)

    I used to have a wordpress.com blog (shirls.wordpress.com), and now have a self-hosted wordpress.org blog at shirlschong.com . When I was at wordpress.com all permalinks have chinese characters because I write in both Chinese and English. Now, unfortunately with my hosting company does not support uft8 codes on permalinks, hence I have to change my permalink structure to the default.

    So, I thought your plugin will be helpful when visitors come from search engine to wordpress.com blog will be redirected to shirlschong.com. However, somehow, it does work, it keeps having page not found error message.

    Do you have experiences with chinese characters permalink? Will your plugin recognise it?

    Thanks for your time and help in advance !

  • Microkid

    March 20, 2009 (8:40 am)

    @zplits – I don’t know what’s causing this, but it might have something to do with another plugin. Try deactivating your plugins one by one and see where the trouble is.

    @Shirls – I’m afraid this plugin can’t help you with that; it can’t redirect from your previous wordpress.com blog to your new “stand alone” installation. Also it wont help you when the actual slug has been changed, sorry.

  • zplits | what's the latest?

    March 21, 2009 (12:00 pm)

    Hi microkid. Thanks for taking time helping me with this regard. I tried what you advised me to do, i disabled and enabled every plugin. And I’ve found out that it’s not your plugin that causes that problem. It was a plugin named “Robots Meta” by Joost de Valk. Have you heard about this plugin?

    My archives now works. Thanks for your great help. Thank you so much. Really! Thank you so much. If there’s anything i can do to help you. Just let me know. thanks once again. so much!

  • kOoLiNuS

    March 21, 2009 (9:32 pm)

    thank you pal!
    I’m using it on my 6 years old italian blog and works perfectly!

  • Subi

    March 27, 2009 (12:42 pm)

    Hi,

    Thanks for the great plugin. I used this one with wp 2.3 versions previously and it worked great. Now I uploaded to one of my new blog which has wp 271. and I had /%year%/%monthnum%/%day%/%postname%/ and I tried to change the permalinks now. and it gives 404. I have .htaccess file in root. please help.

    thanks again

  • Pingback by Redirections permanentes pour Wordpress « SEO Ile de La Reunion

    [...] indispensable pour ne rien perdre en terme de référencement: il s’agit du plugin Permalinks Moved Permanently qui procède automatiquement à une redirection permanente de type 301 en cas de changement dans la [...]

  • Pingback by Redirections permanentes pour Wordpress « SEO Ile de La Reunion

    [...] en terme de référencement à l’occasion de cette migration : il s’agit du plugin Permalinks Moved Permanently qui procède automatiquement à une redirection permanente de type 301 en cas de changement dans la [...]

  • David Radovanovic

    April 2, 2009 (3:59 pm)

    Thanks!! I was getting gobs of “Not found” errors in Google Webmaster Tools (Web Crawl) after I changed the permalinks structure on my site: http://www.whatsthebigidea.com.

    Thanks Again!

  • BlogVen.Net

    April 3, 2009 (10:25 pm)

    I’m interested in this friend Jan plugins, but not if it works well with wp 2.6.2.

    well after installing and activating another action should I do?

    please help!

  • Martin Hiegl

    May 1, 2009 (8:44 pm)

    Hi Microkid, your plugin sounds great.
    However I’m afraid to get very bad performance with it after changing the permalink structure. How does the plugin work?

  • Anthony Hicks

    June 1, 2009 (10:17 pm)

    Hello Micro Kid
    I have been reading about your plug in and it sounds like a great plug in. Here is my deal though I am about to completely revamp my site so that it is more themed. Ex. create pages with the post that correlates to them on that page, which will totally mess up my permalinks (I believe), I am new at this so I am not sure what will happen. Will your plug in solve this problem when I move everything around. I am using WP 2.7.1. Your help is greatly appreciated

  • Microkid

    June 1, 2009 (10:25 pm)

    @ Martin – You shouldn’t worry about performance. Basically, the plugin is only used when a 404 is triggered. So calls to old URLS will result in 2 requests, but regular requests will not be heavier than before.

    @Anthony – If you are changing your permalink structure in your revamp process, this can probably help you from getting 404′s on your old URLs, yes. But it depends on what your old structure was, and what your new structure will be. If both end in %postname%, it’s very likely that this plugin will help you.

    Also, concidering your plans for cross referencing items on your blog, you might want to check out my related posts plugin, which lets you easily tie together posts and pages.

  • Pingback by Migrating from Wordpress.com to a Hosted Solution | Steve Hart's Blog

    [...] Permalinks Moved Permanently - allows me to use SEO friendly URLs – a must! [...]

  • Ibnu Asad

    June 15, 2009 (3:03 pm)

    WordPress 2.8 is out :) Is this plugin compatible with WP 2.8?

  • Christopher

    July 5, 2009 (9:49 pm)

    This plugin did exactly what I hoped it would do after removing the unwanted “index.php” from the permalink structure of a blog I maintain. Thanks a ton!

    And yes, I just updated to WP 2.8, and it works.

  • Pingback by WordPress 2.8 兼容的插件列表 | 网站建设 | 菠萝筐

    [...] Permalinks Moved Permanently plugin 1.3 or newer [...]

  • Vic

    August 12, 2009 (3:49 am)

    I changed my blog from the ‘numeric’ option to the ‘month and name’ type for better SEO. Version 1.3 did not work, but I am happy to say that 1.4rc1 did!

    I am using WordPress 2.8.3.

  • Pingback by Who Else Wants A Highly Optimized Wordpress Blog That Makes Money?- Derby SEO Company | F.M.S

    [...] Permalinks Moved Permanently – If you change your permalink structure to a new one then this plugin will be a life saver. [...]

  • Pingback by Wordpress sender spam - Webforumet.no

    [...] in One SEO Pack Contact Form 7 Front Page Excluded Categories Global Translator Google Analyticator Permalinks Moved Permanently Simple Sticky Posts __________________ -> Gratis phpBB2 & phpBB3 forum! -> Tjen penger [...]

  • Keith Graham

    September 17, 2009 (4:13 pm)

    I recently migrated from Blogger.com. The blog was more than 6 years old and blogger refused to republish more than 500 posts. Using blogger and FTP I had old posts using older templates in the form of both .html and .shtml.

    After installing wordpress I installed your plugin, but links to old .html files did not redirect.

    I don’t know if this fix is listed elsewhere but if it is not – here it is.

    I made the following change to the code and it works fine now and ignores extensions.

    after the line: $slug= basename…

    add:
    // if using an extension
    $k=strpos($slug,’.',strlen($slug)-6);
    if ($k>0) {
    $slug=substr($slug,0,$k);
    }
    // end of additional code

    Now all extensions (or lack thereof) will result in presenting the right page. Search engines are happy. I am relieved.

    Keith

  • Laraine

    September 19, 2009 (5:34 pm)

    Thanks Microkid, I’ve never seen any better tlc from a moderator and am impressed with the way you are caring for questions. I just installed your plugin on a new blog, and wonder if this will be useful in future, should I change the permalinks later, after your plugin is already working.

  • Colon Cleansing

    October 7, 2009 (10:49 pm)

    Before using your plugin, all my urls looked like this:

    mysite.com/internalpage

    AFTER using your plugin, all my urls look something like this:

    mysite.com/584/internalpage Notice the numbers between the domain and the file page?

    Are those numbers necessary? Can you please tell me why it does that and is there a way to turn that off?

    Thank you very much.

  • Lisa

    October 10, 2009 (4:41 pm)

    This would be a great plugin, but it is not working for me :(

  • Pingback by Best Wordpress Plugins For new Wordpress Blogs | Enbeeone3 : Freelancer From Nepal

    [...] 13. Permalinks Moved Permanently [...]

  • Pingback by En Popüler 30 WordPress Eklentisi « UKYO-TRK Kişisel Bloğum

    [...] 13. Permalinks Moved Permanently [...]

  • Pingback by Top 1000 WordPress Plugin Authors « Metode de promovare

    [...] Permalinks Moved Permanently [...]

  • Pingback by 30 Awesome plugins must have for new wordpress blog | AnimHuT - Creative Blog

    [...] isn’t found, this checks if a post with the requested slug exists somewhere else on your blog. Visit plugin site 19. Redirection Manage all your 301 redirects and monitor 404 errors. Help improve SEO. Vist [...]

  • craig

    November 30, 2009 (12:21 am)

    I installed your plug-in and now all my pages are missing, and there is are numbers in my permalinks that were not there before.
    Such as /141/ or /152/ etc..

    I deactivated the plug-in and everything is now permanently changed.
    How solutions?

  • Microkid

    November 30, 2009 (9:35 am)

    Hi craig,

    It can’t be this plugin that caused it, because it doesn’t change anything like permalink structure or whatever.

  • Pingback by Blog » TOP 30 Best Wordpress Plugins

    [...] 13. Permalinks Moved Permanently [...]

  • Rod

    December 19, 2009 (5:42 pm)

    Thank you,
    Just tried with WP 2.9 and still working fine.

  • Geoff Burrows

    December 24, 2009 (8:15 pm)

    Hi

    I have recently changed my permalinks to pretty permalinks, and have used your plugin to help sort out any old links and whatnot. First off, thanks very much for this plugin, it has no-doubt saved me a lot of trouble. I’m having one small problem, however. Whenever I click on the author links (derived from the_author_posts_link()), I get an error message: http://nag.tidemedia.co.za/author/matthew-vice/ . What could be the trouble?

  • Jose Morales

    December 28, 2009 (10:18 pm)

    Team Mine is not working I am trying to go from

    /%year%/%monthnum%/%day%/%postname%/

    to

    /%postname%.html

  • Roman

    December 30, 2009 (4:06 pm)

    Thanks for this wunderful plugin. Helped me alot!

    Cheers
    Roman

  • Pingback by FMS SEO » Wordpress Plugins For Search Engine Optimisation

    [...] Permalinks Moved Permanently – If you change your permalink structure to a new one then this plugin will be a life saver. [...]

  • MarcoRoxy

    January 11, 2010 (1:00 am)

    Hi. Very good article, but I need a help.

    I use wordpress on a linux server.

    I set permalinks but I have some problems with a couple of things.

    How to rewrite & permalink like “domain.com/fr/aticle-title” this 2 address
    domain.com/?p=228&lang=fr
    domain.com/index.php?p=228&lang=fr

    The second problem is this:
    “domain.com/article-title/?lang=fr” must be “domain.com/fr/article-title/”

    The third is to know how to modify variable sequency in permalink
    “domain.com/index.php?p=228&lang=fr&tag=ferry” must be “domain.com/fr/ferry/article-title/”

    I need to know how to modify htaccess file or if there is a wordpress plugin and how to set it.

    tks for the help and sorry for the bad english!!!

    Marco

  • Pingback by WordPress SEO & Marketing FREE Plugins

    [...] WordPress Plugin: Permalinks Moved Permanently [...]

  • Pingback by Top Ten Recommendations for Enhancing SEO in Wordpress | WPTemplates.net | Free Wordpress Themes

    [...] and do not want to have existing indexing or bookmarks ruined, you can use a plugin such as Permalinks Moved Permanently that will refer to the new link even when the old is [...]

  • damien

    January 19, 2010 (6:49 pm)

    thank you for this plugin …

    it required no configuration and saved me losing all my traffic when I migrated my to wordpress selfhosted

    This also saved all the hassles with google and indexing

    thank you

  • Pingback by How to not impact your SEO and website traffic when changing Wordpress Permalinks | Damien Saunders

    [...] wordpress plug-in looks at the incoming link URL structure and then redirects on the fly to the correct post with the [...]

  • arivusudaroli ramalingam

    January 19, 2010 (10:18 pm)

    One of the best plugins for SEO, it will be useful when you change your permalinks structure for sure.

  • Pingback by 18 Plugin Wordpress Wajib Pilihan Aku

    [...] reader blog untuk datang lagi dengan memaparkan url commentator yang terbanyak di sidebar. 10- Permalinks Moved Permanently Penting! Amat bergune untuk mengelak dikenakan penalty oleh Google. Setiap url yang berubah akan [...]

  • Frump

    January 20, 2010 (6:23 pm)

    If the old permalink structure used slugs with underscores instead of WP’s hyphens, will this plugin be ineffectual?

    I’ve done the proper .htaccess rewrites for the underscore to hyphen conversion, but I’m assuming this doesn’t jive with the plugin, because I’m getting 404′s for:

    Old URL: http://www.mysite.com/path/path2/slug_title

    New URL: http://www.mysite.com/slug-title

    Thanks in advance for your help.

  • Microkid

    January 23, 2010 (3:52 pm)

    @ Frump
    I’m afraid you can’t solve this with this plugin, because the slug for the posts has changed. But you should probably be able to fix it using just a rewrite rule.

  • SpartacusB

    January 29, 2010 (11:09 am)

    I thought I’d let you know that after installing the all in one seo tools and changing my permalink structure, not only did all my links return 404 errors, but even new articles I created did. After verifying my .htaccess file was enabling the RewriteEngine and all that, I tried disabling all my plugins. Suddenly all my links (old posts and new posts) started working. When I again enabled all my plugins, the links all continued to work.

    So, if anyone is pulling their hair out, try disabling all your plugins, close your browser, and if the links work, then after you re-enable your plugins they might just continue working.

  • Pingback by 10 “Gotta Have” Wordpress Plugins for Your Blog. | Halfbrown

    [...] Permalinks Moved Permanently: [...]

  • Maski

    February 5, 2010 (12:04 am)

    Amazing,… wasnt sure that it would kinda work.. but damn… it rock! thanks

  • Pingback by 30 of the Best WordPress Plugins « Digital Media Arts

    [...] Permalinks Moved Permanently When permalink isn’t found, this checks if a post with the requested slug exists somewhere else [...]

  • leonfilin

    March 5, 2010 (5:04 pm)

    В автотехцентре профессионалами производится ремонт коробок передач, с применением специального оснащения в оговоренные сроки вполне удовлетворит требованиям каждого заказчика автомобиля.

  • Polo

    March 11, 2010 (10:51 pm)

    Love the plugin I can change my permalink easily righ now…

  • Pingback by 101 Killer WordPress Plugins that Kick Ass - Montana Programmer

    [...] Permalinks Moved Permanently: This will automatically create 301 redirects for any page where the permalink structure has changed. If you are moving blogs or making major changes to your permalinks, this is a must! PluginWP [...]

  • jimena

    April 8, 2010 (3:19 am)

    If you help me, you´ll be my hero.

    I started a blog a year ago, but I changed my hosting service a few months ago. Of course, many links are broken now.
    The actual structure of the permalinks is http://soypremier.com/?p=123 (the ugly one). If I change it, what will happen???.

    Your plugin can solve it?.

    Can you tell me what to do first?. Install your plugin and after that, change the permalink structure???.

    Please, heeeeeeeeeelp.

    Thanks in advance.

    Jim.

  • Pingback by Pattern Inc » WordPress 404 Pages: Essential Tips and Tools

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by Pattern Inc » WordPress Error 404 Pages: Essential Tips and Tools

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by SiteDart – Webdesign in your hands » Blog Archive » WordPress Error 404 Pages: Essential Tips and Tools

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by WordPress Error 404 Pages: Essential Tips and Tools |

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by WordPress Error 404 Pages: Essential Tips and Tools | DesignerLinks | Home to Web design news, jQuery Tutorials, CSS tutorials, Web Designing tutorials, JavaScript tutorials and more!

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by WordPress Error 404 Pages: Essential Tips and Tools | #! Jack Script

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by WordPress Error 404 Pages: Essential Tips and Tools | IdolMasti

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by Wordpress Plugins | UndergroundMarketingBlog.com

    [...] Permalinks Moved Permanently – When permalink isn’t found, this checks if a post with the requested slug exists somewhere else on your blog. [...]

  • Pingback by Wordpress Plugins

    [...] Permalinks Moved Permanently – When permalink isn’t found, this checks if a post with the requested slug exists somewhere else on your blog. [...]

  • Pingback by WordPress Error 404 Pages: Essential Tips and Tools Resources W3C Tag

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by WordPress Error 404 Pages: Essential Tips and Tools | Internet Marketing Guru

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by YeahData – All Free Download | Link Mediafire + Mega1280 + HF + MU !!! » TOP 30 Wordpress Plugins

    [...] 13. Permalinks Moved Permanently [...]

  • Pingback by 404 error page tips, best practices and inspirations - Blogcastor

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by TOP 30 Wordpress Plugins | BLOGnya DANISH

    [...] 13. Permalinks Moved Permanently [...]

  • Pingback by TOP 30 Wordpress Plugins : Bo Ha HighSchool

    [...] 13. Permalinks Moved Permanently [...]

  • opanengineer

    June 9, 2010 (5:56 pm)

    how can i solve this (404 error)???
    i have install it in my blog (plugins) but it doesn’t work.., help me please…,

  • Pingback by WordPress SEO & Marketing FREE Plugins - Template Tuners Blog on Web Design, SEO & Online Marketing, E-Commerce and more!

    [...] Plugin: Permalinks Moved Permanently If you just migrated your WordPress blog from one permalink structure to another, and you [...]

  • Pingback by WordPress Error 404 Pages: Essential Tips and Tools | Technology Blog

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by Essential Guidelines for WordPress 404 Error Pages | Onextrapixel - Showcasing Web Treats Without A Hitch

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don't want to lose out on incoming links going to your old pages. [...]

  • Pingback by Update : TOP 30 WordPress Plugins | www.mudahonline.com

    [...] 13. Permalinks Moved Permanently [...]

  • Pingback by 求索阁 » WordPress 404错误页面大观园

    [...] Permalinks Moved Permanently 如果你对博客的永久链接结构做过修改,这款插件最合适不过了。 [...]

  • kabar

    July 25, 2010 (3:36 am)

    is that working on wp 3.0 ?

  • Pingback by Wordpress Plugins | mywordpressclassroom.com

    [...] Permalinks Moved Permanently – When permalink isn’t found, this checks if a post with the requested slug exists somewhere else on your blog. [...]

  • Pingback by WP404页面指南 - 数据力量

    [...]   Permalinks Moved Permanently   如果你对博客的永久链接结构做过修改,这款插件最合适不过了。 [...]

  • Pingback by WordPress 404 NOT FOUND错误页面基本指南 | WebMLog

    [...] Permalinks Moved Permanently 如果你对博客的永久链接结构做过修改,这款插件最合适不过了。 [...]

  • Daniel Ribeiro

    August 26, 2010 (10:55 pm)

    Hi!
    I’m not sure if this plug-in will solve my problem.
    I have a 3-year old blog with a lot of links over the web. But now I need to change the permalink structure to the following:
    Old: http://www.motosblog.com.br/2010/07/20/a-verdade-sobre-o-corredor/

    New: http://www.motosblog.com.br/2010/a-verdade-sobre-o-corredor-1340

    The current structure is /Year/Month/Day/Title/ and I want to chante it to /Year/Title-PostID/

    So, is this possible?

  • TheCuriosity

    August 30, 2010 (11:23 pm)

    @kabar:

    Just tried it in 3.0.1 and it works!

    I was trying to edit the htaccess file, but kept getting errors. So far with this plug in – no headaches!

    It just takes an extra second or so for the new page to load, but with the little amount of external links to my site, I’m just happen not to have to worry about this any more.

  • Pingback by Boost Blog Traffic using 7 Top WordPress SEO Plugin | ProxyByte Theme

    [...] Permalinks Moved Permanently Homepage Download Permalinks Moved Permanently [...]

  • Pingback by TOP 30 great wordpress plugins | WPDocs | Free Wordpress Themes, Premium Wordpress Themes Collection, Best Wordpress Templates

    [...] 13. Permalinks Moved Permanently – Great wordpress plugins [...]

  • ming naam

    October 7, 2010 (8:47 pm)

    Thanks!
    Great Plugin It works 100% on my My Blog with wordpress 3.0.1

    Thanks!
    Thanks!
    Thanks!

  • Robbie

    October 14, 2010 (2:17 pm)

    The redirection is working well on our blog except for short URLs that have been redirected. The URL parameters that get added by our URL shortener seem to be messing up this plugin’s ability to match the stub. (We have the Parameter plugin turned on, which should make the parameters themselves OK.)

    Shoud we expect it to be working even with URL parameters?

  • Pingback by TOP 30 great wordpress plugins | WPDocs | Free Wordpress Themes, Premium Wordpress Themes Collection, Best Wordpress Templates

    [...] 13. Permalinks Moved Permanently [...]

  • Buy and Sell

    November 18, 2010 (6:35 pm)

    nice I have been looking for a plug-in like this. I recently changed my perma link settings and have been getting a lot of 404′s. At least now they will be redirected back to where i want them.

  • frustrated

    December 4, 2010 (8:29 am)

    Hi,

    I installed the plugin and was hoping I am free to change the permalinks atleast now but when I changed permalinks after plugin activation i am not able to access the neither the site nor the admin panel.

    I set the permalinks for %postname% and the blog is not in the root instead it is in one of the subdomain.

    Can anyone solve the issue?

    Thanks

  • Pingback by Wordpress-Plugins: Welche sind Pflicht und Must Have?! | Stetix

    [...] 6. Permalinks Moved Permanently [...]

  • Pingback by How to use the 404 monitor SEO module | IT by Mitch

    [...] your site recently changed permalink structure and you want to capture existing incoming links (use Permalinks Moved Permanently).  Maybe you only have a handful of 404s to redirect (you can use the Redirector Plugin).  Smart [...]

  • Pingback by Lamp久久博客 - 温柔一刀 - 专注于Linux+Apache+MySQL+PHP技术研究! » Blog Archive » WordPress 404错误页面基本指南

    [...] Permalinks Moved Permanently 如果你对博客的永久链接结构做过修改,这款插件最合适不过了。 [...]

  • Pingback by Zmiany na blogu - SkiX.pl - Blog - Web design, Grafika, Fotografia

    [...] i teraz stracę dobrą pozycję? Na szczęście nie, w tej sytuacji z pomocą przychodzi plugin Permalinks Moved Permanently, który automatycznie tworzy przekierowania ze starych linków do wpisów w nowej [...]

  • Robert

    January 17, 2011 (1:50 pm)

    Thank you sooooooo much!!!!

    It works like a charm!

    Please note that my previous structure was
    /index.php/%year%/%monthnum%/%day%/%postname%/

    Thank you for you magical plugin

    Robert

  • Pingback by WordPress | Sonige | Sonige Cyberport

    [...] Permalinks Moved Permanently 如果你对博客的永久链接结构做过修改,这款插件最合适不过了。 [...]

  • Pingback by Ошибки 404 в Wordpress: причины, советы и нужные инструменты | Webgrow

    [...] Permalinks Moved Permanently [...]

  • Pingback by 404 Páginas Error WordPress: Consejos Esenciales

    [...] Permalinks Movido permanentemente Este plugin es útil si se cambia la estructura de enlaces permanentes de tu blog y no quieren perder a cabo en los enlaces entrantes que van a sus páginas de edad. Además de redirigir al visitante en el nuevo enlace, sino que también genera un “301 Movido permanentemente” error, de modo que los visitantes se redirigen automáticamente en el futuro (junto con los motores de búsqueda). [...]

  • Pingback by Ghost22 » Blog Archive » 30 of the Best WordPress Plugins

    [...] Permalinks Moved Permanently When permalink isn’t found, this checks if a post with the requested slug exists somewhere else [...]

  • Justina

    May 1, 2011 (2:35 am)

    Now, you jest set here an’ let me go an’ find out how ter git there.

  • Eustina

    May 1, 2011 (2:36 am)

    “Hezekiah Warden!” she almost sobbed. “

  • Pingback by WordPress Error 404 Pages: Essential Tips And Tools

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by WordPress Error 404 Pages: Essential Tips And Tools | How It Easy (HIE) Computing community

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • techboy

    May 17, 2011 (10:22 am)

    Hey guy, Very Nice Plugin…great work!! Just works fine for me….I’m using it on my new tech blog…many thanks!!

  • Pingback by WordPress SEO Plugin To Boost Blog Traffic — Tips And Tricks

    [...] Permalinks Moved Permanently Homepage Download Permalinks Moved Permanently [...]

  • Phillip Dan

    May 28, 2011 (4:26 am)

    thanks for great plugin ! I have use on my site

  • Pingback by Redirecting invalid URI | Dityo Nurasto

    [...] I found one from http://www.microkid.net/wordpress/permalinks-moved-permanently/ and I don’t need to reinvent the wheel for creating plugin. Hacking a function little bit [...]

  • Candy

    June 10, 2011 (8:02 am)

    Great,it’s work with me, thanks !

  • Pranny

    June 11, 2011 (7:19 am)

    Thanks your plugin rebirth my previous dead URL structure, which are already indexed. Great:)

  • Pingback by » Our favorite WordPress Plug-ins Pattaya Web Services – wesbite design & SEO in Pattaya, Thailand

    [...] Permalinks Moved Permanently [...]

  • Raffaele

    July 6, 2011 (12:19 pm)

    Perfect!

  • winter jackets

    July 22, 2011 (2:52 am)

    Li Regress, stop, start again. Choose another life, another career. Off the top of your head: wood-turner.

  • Pingback by Mengatasi Error 404 « Aceh Serambi Mekkah

    [...] Permalinks Moved Permanently [...]

  • Pingback by Best Wordpress Plugins | Bolozer

    [...] in tag links to limit the number of links on a page if you add tag cloud on your blog.13. Permalinks Moved PermanentlyWhen permalink isn’t found, this checks if a post with the requested slug exists somewhere else on [...]

  • Pingback by WordPress 404错误页面基本指南 | 托尼Web前端开发|HTML,CSS与JavaScript的爱情故事

    [...] Permalinks Moved Permanently 如果你对博客的永久链接结构做过修改,这款插件最合适不过了。 [...]

  • Pingback by WordPress 404错误页面基本指南 | 托尼Web前端开发

    [...] Permalinks Moved Permanently 如果你对博客的永久链接结构做过修改,这款插件最合适不过了。 [...]

  • Pingback by TOP 30 Best WordPress Plugins | SEOcontents, SEO basic, SEO content, How to SEO

    [...] 13. Permalinks Moved Permanently [...]

  • Pingback by WordPress Error 404 Pages: Essential Tips and Tools | WebDino.net

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Cyndi

    September 6, 2011 (1:50 pm)

    Hi MicroKid,

    I’m praying you can help me with this. I migrated our blog from one domain to another and the external redirects aren’t working…..if someone has a page saved as their favorite it won’t redirect them to the page on the new domain. I changed permalinks also (not by choice)….the structure on the old domain was customized by someone else using categories, year, month and postname, but the only way to get the blog to work on the new domain I changed it to the default. Will your plugin help me with this?

    Thanks

  • Pingback by WordPress Error 404 Pages: Essential Tips and Tools | Play.GlamourHits.com |

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by Cool Error 404 pages handling tricks | DesDevWeb

    [...] Permalinks Moved Permanently This plugin is helpful if you change the permalink structure of your blog and don’t want to lose out on incoming links going to your old pages. In addition to redirecting the visitor to the new link, it also generates a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Boonchai Boontam

    October 15, 2011 (5:35 pm)

    Best Technic , Thanks you so much.

  • Pingback by Startup mistakes to avoid: Your blog on a subdomain | CogniCard Business Card Scanner

    [...] the permalinks structure in your WordPressblog to /%postname%.html . You might need to install the Permalinks moved permanently plugin to ensure that you don’t get [...]

  • Pingback by B side » 워드프레스 플러그인정리

    [...] Permalinks Moved Permanently파마 링크가 변경된 경우, 새로운 URL로 자동으로 리디렉션주는 플러그인 [...]

  • Pingback by Change Wordpress permalinks on the fly. | An It-Slave in the digital saltmine

    [...] solution is to install the plugin  "Permalinks Moved Permanently" which fixes this problem, make sure that the webserver allows [...]

  • Microsoft Windows

    December 15, 2011 (2:42 am)

    i enjoy this post greatly. ill be coming backfor future poststhanks.

  • Pingback by 7 Top WordPress SEO Plugin To Boost Blog Traffic | Net Info Book

    [...] Permalinks Moved Permanently Homepage [...]

  • Billig Seo

    January 18, 2012 (7:13 pm)

    Thanks for this great plugin. I was so warried that I would have to do it manually in .htaccess. It saved me a lot of trouble. Good work guys – billig seo

  • Aliansyah

    January 19, 2012 (4:42 pm)

    the plugin works great for my edu blog. thank you so much

  • Paul

    February 6, 2012 (11:34 pm)

    Does the Plugin work with the latest version of WP as it has not been updated in a while?

  • Pingback by Berbagai Plugin untuk mengatasi error 404 | Wayjar' Blog

    [...] blog terakhir , kotak pencarian, dan pilihan untuk melaporkan kesalahan, dan beberapa pilihan lain.Permalinks Stirred EverlastinglyPlugin ini sangat membantu jika kita mengubah struktur permalink blog  dengan mengarahkan Url lama [...]

  • Dan

    March 5, 2012 (11:25 pm)

    It’s not working for me… maybe because I am mapping the domain on wp multisite?

    I’ve tried other plugins too, same result (no redirects). I totally killed my blog traffic :(

  • Pingback by Wordpress Wednesday - Important Tips & Tricks for 404 Error Pages | Theresa Sheridan Designs

    [...] Permalinks Moved Permanently Should you decide to change the permalink structure of your site and you are concerned about losing out on incoming links going to your old pages, try this plugin. It will redirect your visitor to the new link, as well as generate a “301 Moved Permanently” error so that visitors are automatically redirected in the future (along with search engine spiders). [...]

  • Pingback by Berbagai Plugin untuk mengatasi error 404 | loewongankerja

    [...] blog terakhir , kotak pencarian, dan pilihan untuk melaporkan kesalahan, dan beberapa pilihan lain. Permalinks Moved Permanently Plugin ini sangat membantu jika kita mengubah struktur permalink blog  dengan mengarahkan Url lama [...]

  • Pingback by Wordpress Permalinks - advice needed - Bizzteams

    [...] 0 Times in 0 Posts Just use WordPress plugin: Permalinks Moved Permanently – Microkid.net which is a great plugin. Also, I have found that the structure post id/postname works best [...]

  • Pingback by 9 best wordpress SEO plugins | Desi Brotherss

    [...] Permalinks Moved Permanently [...]

Sorry, comments have been closed.