Not a developer? Go to MovableType.com

Plugin and Theme Directory

Clean Sweep v2.0.0

By Byrne Reese
Posted September 3, 2007, in Utilities.

Details

Clean Sweep is a plugin that assists administrators in finding and fixing broken inbound links to their website. It was built to support three use cases:

  • to help users monitor any broken links on their blog and have a system that can automatically adapt by redirecting stale and inbound links to the proper destination.

  • to help users get a clean start with their blog by allowing them to completely restructure their permalink URL structure and have a system that can automatically adapt by redirecting stale and inbound links to the proper destination.

  • to help users in the process of migrating to Movable Type who are forced to modify their web site's URL and permalink structure.

These use cases have to do with preserving a site's page rank in light of a major redesign.

After configuration, Clean Sweep will track all inbound links that result in a 404 and will ultimately deduce the intended file and redirect the client to that file.

Clean Sweep will also produce a set of Apache mod_rewrite rules to map inbound links to their destination permanently.

  • Movable Type 4.x or Melody 1.x is supported with version 1.2.3.

Configuration

To install this plugin follow the instructions found here:

http://tinyurl.com/easy-plugin-install

Clean Sweep supports both Apache and Lighttpd. For now you elect what web server you are using on a blog-by-blog basis. All documentation however, refers to Apache, as it is far more common. Lighttpd users should simply follow the analogous instruction for their web server when appropriate.

Create a page in Movable Type called "URL Not Found". Give it a basename of "404". Place whatever personalized message you want that will be displayed to your visitors when Clean Sweep is unsuccessful in mapping the request to the correct page or destination. Publish the page and remember the complete URL to this page on your published blog. (Alternatively, create an Index template for your 404.)

Navigate to the Plugin Settings area for Clean Sweep. Enter the full URL to your "URL Not Found" page (as created above) into the "404 URL" configuration parameter.

Also in the Plugin Settings area, make note of the Apache configuration directive and place it in your httpd.conf or in an .htaccess file. Restart the web server, if necessary.

Use

Clean Sweep will use the following ruleset in trying to guess the target URL the client is requesting:

  1. Is the target resource using the entry id as a URL? This is a prevalent URL pattern for older MT installations. This will:

    Map: http://www.majordojo.com/archives/000675.php To: http://www.majordojo.com/205/07/goodbye-bookque.php

  2. Is the target resource using underscores when it should be using hyphens? Many users have switched to using hyphens for purported SEO benefits. This will attempt to look for a file in the system of the same name, but using '-' instead of '_'. This will:

    Map: http://www.majordojo.com/2005/07/goodbye_bookque.php To: http://www.majordojo.com/2005/07/goodbye-bookque.php

  3. Is their a target resource with the same basename somewhere? If a user switches their primary mapping to use a date based URL as opposed to a category based URL, then this rule will apply. This will:

    Map: http://www.majordojo.com/personal-projects/goodbye-bookque.php To: http://www.majordojo.com/2005/07/goodbye-bookque.php

If Clean Sweep was unable to redirect the request it will return the 404 "URL Not Found" page created above, and logs the 404. You can review all of the logged 404s by visiting Manage > Logged 404s.

On the Logged 404s screen are options to mange the 404s, including the ability to specify how a given URL should be handled. Click "Map" to adjust this in a popup dialog, where you can select:

  • Redirect to URL: specify a URL to redirect to as a 301 Redirect response.
  • Resource Permanently Removed: returns a 410 Gone response.
  • Resource Forbidden: returns a 403 Forbidden response.

Additionally on the Map dialog is a table of referrers. Note that a referring URL is not available for every URL.

Once a URL has been mapped it is no longer counted. This is useful because after mapping you can use the Reset function (on the Manage > Logged 404s page) to delete the count of occurrences for that URL. After manually fixing a reported URL you can Reset it, and the effect is that new broken URLs will be quickly visible even after having only two or three hits.

Compatibility

Movable Type versions: 5.05.15.26.0 Verified

License

GPL


Back

58 Comments

zalmenpollak

zalmenpollak on July 18, 2016, 12:29 p.m. Reply

Great post. Actually i am lookingfor something like this. Zalmen Pollak

seorankbuilder

seorankbuilder on January 21, 2017, 9:47 p.m. Reply

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can’t wait to read lots of your posts. spa consultant

seorankbuilder

seorankbuilder on January 23, 2017, 5:45 p.m. Reply

Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback. https://applyforein.com

seorankbuilder

seorankbuilder on January 24, 2017, 2:03 p.m. Reply

Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day! Georges Sadala Rihan

seorankbuilder

seorankbuilder on January 24, 2017, 11:09 p.m. Reply

I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. escritorio de advocacia

seorankbuilder

seorankbuilder on January 25, 2017, 6:37 p.m. Reply

This article was written by a real thinking writer. I agree many of the with the solid points made by the writer. I’ll be back. website

seorankbuilder

seorankbuilder on January 26, 2017, 5:12 a.m. Reply

I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. curso de excel avançado

Andrew Steven

Andrew Steven on January 26, 2017, 8:38 a.m. Reply

I search most a site with articles like your own. I am supervisor and then moderator for this online site: ">http://www.addpaypalmoney.com/”> paypal money adder . Verify and let me know if need to make anything or maybe include something totally new to appearance a lot more good. I say thanks to you for your website is quite perfect. I follow you and I bookmark your internet site and I continue to reading content. Appreciation once more an continue working!

seorankbuilder

seorankbuilder on January 27, 2017, 7:40 p.m. Reply

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information… Augusto de Arruda Botelho

seorankbuilder

seorankbuilder on January 29, 2017, 12:54 p.m. Reply

Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting. Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting.

seorankbuilder

seorankbuilder on January 31, 2017, 6:33 p.m. Reply

it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity.. casas em orlando

jams

jams on February 1, 2017, 12:29 p.m. Reply

I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. law firm web design

jams

jams on February 4, 2017, 4:06 p.m. Reply

Thank you so much for the post you do. I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. toe with gout

seorankbuilder

seorankbuilder on February 5, 2017, 3:25 p.m. Reply

Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene.website

seorankbuilder

seorankbuilder on February 6, 2017, 7:58 a.m. Reply

I found this is an informative and interesting post so i think so it is very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this article. boldleads

jams

jams on February 6, 2017, 4:39 p.m. Reply

I’ve been searching for some decent stuff on the subject and haven’t had any luck up until this point, You just got a new biggest fan!.. natural appetite suppressant tea

jams

jams on February 7, 2017, 12:54 p.m. Reply

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! lularoe leggings

Jason

Jason on February 9, 2017, 11:02 a.m. Reply

I’m still using this plugin and don’t have any issues with it. Nicely done!

http://mattress.truereviewer.com/

seorankbuilder

seorankbuilder on February 10, 2017, 4:14 p.m. Reply

This content is written very well. Your use of formatting when making your points makes your observations very clear and easy to understand. Thank you. freelance sales partner

seorankbuilder

seorankbuilder on February 13, 2017, 7:45 p.m. Reply

You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. www.youtube.com/watch?v=3K_wKvjPDoQ&t=2s

seorankbuilder

seorankbuilder on February 15, 2017, 8:12 a.m. Reply

I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me. Online Games - best friv & kizi games

seorankbuilder

seorankbuilder on February 15, 2017, 9:53 a.m. Reply

This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. Best Friv & Kizi Games for all players

seorankbuilder

seorankbuilder on February 15, 2017, 10:23 a.m. Reply

Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging.. New Best Kizi & Friv Games

seorankbuilder

seorankbuilder on February 15, 2017, 11:07 a.m. Reply

This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great. http://www.arabicgames.info/

seorankbuilder

seorankbuilder on February 15, 2017, 11:35 a.m. Reply

I found that site very usefull and this survey is very cirious, I ’ ve never seen a blog that demand a survey for this actions, very curious… Kizi & Friv Car Games

seorankbuilder

seorankbuilder on February 17, 2017, 7:31 a.m. Reply

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it’s nice to find a website that details so much information about different artists. Play Only Best Friv Games

seorankbuilder

seorankbuilder on February 17, 2017, 9:48 a.m. Reply

This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. http://www.cargamescar.us/

seorankbuilder

seorankbuilder on February 17, 2017, 10:11 a.m. Reply

I just want to let you know that I just check out your site and I find it very interesting and informative.. http://www.cargamescar.net/

seorankbuilder

seorankbuilder on February 17, 2017, 10:44 a.m. Reply

I really impressed after read this because of some quality work and informative thoughts . I just wanna say thanks for the writer and wish you all the best for coming!. New Car Kizi & Friv Games

seorankbuilder

seorankbuilder on February 17, 2017, 11:06 a.m. Reply

This is the type of information I’ve long been trying to find. Thank you for writing this information. New Kizi & Friv Best Car Games

uali20

uali20 on February 20, 2017, 10:51 a.m. Reply

sefddddddddddddddddddd

seorankbuilder

seorankbuilder on February 23, 2017, 7:39 a.m. Reply

I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. safety new york

seorankbuilder

seorankbuilder on February 25, 2017, 8:21 a.m. Reply

I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. www.frivnewgames.info

seorankbuilder

seorankbuilder on February 25, 2017, 12:05 p.m. Reply

I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing. www.gamesfriv.us

uali20

uali20 on February 25, 2017, 2:58 p.m. Reply

This is a splendid website! I”m extremely content with the remarks!. buy essay

uali20

uali20 on February 25, 2017, 2:58 p.m. Reply

This is a splendid website! I”m extremely content with the remarks!.buy essay

seorankbuilder

seorankbuilder on February 25, 2017, 4:03 p.m. Reply

i am for the first time here. I found this board and I in finding It truly helpful & it helped me out a lot. I hope to present something back and help others such as you helped me. www.gungamesgun.com

seorankbuilder

seorankbuilder on February 26, 2017, 10:50 a.m. Reply

If you set out to make me think today; mission accomplished! I really like your writing style and how you express your ideas. Thank you. neck pain

seorankbuilder

seorankbuilder on February 28, 2017, 6:28 p.m. Reply

Thanks a lot for sharing us about this update. Hope you will not get tired on making posts as informative as this. digital signage

jams

jams on March 4, 2017, 6:19 a.m. Reply

That appears to be excellent however i am still not too sure that I like it. At any rate will look far more into it and decide personally! website

seorankbuilder

seorankbuilder on March 4, 2017, 8:26 a.m. Reply

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. read more

seorankbuilder

seorankbuilder on March 4, 2017, 2:05 p.m. Reply

Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. www.kizigamesfriv.com

seorankbuilder

seorankbuilder on March 5, 2017, 7:49 a.m. Reply

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that “The content of your post is awesome” Great work. www.kizigameskizi.info

seorankbuilder

seorankbuilder on March 5, 2017, 8:18 a.m. Reply

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Thanks… www.kiziplay.info

seorankbuilder

seorankbuilder on March 5, 2017, 8:43 a.m. Reply

This article gives the light in which we can observe the reality. This is very nice one and gives in depth information. Thanks for this nice article. friv3.net

seorankbuilder

seorankbuilder on March 6, 2017, 7:14 a.m. Reply

hi was just seeing if you minded a comment. i like your website and the them you picked is super. I will be back. iPhone thin case

jams

jams on March 6, 2017, 7:45 a.m. Reply

Thanks a lot for sharing us about this update. Hope you will not get tired on making posts as informative as this. https://goo.gl/e78ta4

jams

jams on March 9, 2017, 9:27 a.m. Reply

This is highly information, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things. jobs hiring in my area

seorankbuilder

seorankbuilder on March 9, 2017, 2:32 p.m. Reply

You completed a few fine points there. I did a search on the subject and found nearly all persons will go along with with your blog. house inspection

seorankbuilder

seorankbuilder on March 10, 2017, 5:52 p.m. Reply

I went over this website and I believe you have a lot of wonderful information, saved to my bookmarks radish apparel

seorankbuilder

seorankbuilder on March 11, 2017, 6:53 p.m. Reply

Thank you for taking the time to publish this information very useful! peptide

jams

jams on March 15, 2017, 7:52 a.m. Reply

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.. web development annapolis

jams

jams on March 16, 2017, 12:01 p.m. Reply

If you set out to make me think today; mission accomplished! I really like your writing style and how you express your ideas. Thank you. Buy a home in Portland

seorankbuilder

seorankbuilder on March 18, 2017, 8:33 a.m. Reply

Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers. Pressure Washing

jams

jams on March 18, 2017, 10:03 a.m. Reply

hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. hemmeroid thrombosis

jams

jams on March 18, 2017, 10:04 a.m. Reply

hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. hemmeroid thrombosis

seorankbuilder

seorankbuilder on March 19, 2017, 7:21 a.m. Reply

This content is written very well. Your use of formatting when making your points makes your observations very clear and easy to understand. Thank you. Donut Shop - Play Free Y8 Online Games

jams

jams on March 19, 2017, 3:58 p.m. Reply

I felt very happy while reading this site. This was really very informative site for me. I really liked it. This was really a cordial post. Thanks a lot!. Local SEO

Leave a Comment

Byrne Reese

Byrne Reese was previously the Product Manager of Movable Type at Six Apart, where he had also held positions as the Manager of Platform Technology and Product Manager for TypePad. Byrne is a huge supporter of the Movable Type user and developer community. He dedicates much of his time to promoting and educating people about Movable Type as well as building the tools and plugins for Movable Type that are showcased on Majordojo. He contributes regularly to open source; and he is an advocate for open protocols and standards like Atom and OpenID.

Website: http://profile.typekey.com/byrnereese