• Skip to primary navigation
  • Skip to main content
  • Skip to footer
  • Books
    • Content Strategy for WordPress (2015)
    • WordPress for Web Developers (2013)
    • Beginning WordPress 3 (2010)
  • Blog
    • Content Modeling for WordPress
    • WordPress Hidden Gems
    • Web Design
  • Work
    • MLIS Class Projects (2019-2022)
    • Portfolio (2002-2019)
    • Services
    • WordPress Plugins
    • WordPress Themes
    • Presentations and Interviews
    • on GitHub →

Stephanie Leary

Writer, WordPress consultant, recent MLIS grad

  • About
    • Press Kit
    • Presentations and Interviews
  • Contact Me

HTML Import 2.1 fixes your links

August 30, 2011 Stephanie Leary 1 Comment

I’ve just released version 2.1 of HTML Import, which includes a new option to fix internal links. As the importer runs, it builds a list of old paths vs. new permalinks. You’ll see that list reflected in the .htaccess redirects when the import is complete. This new function runs after all the files have been imported, so it can use that list to match up link URLs with the new WordPress posts.

Like the image import function added in 2.0, the link function should be able to handle relative links:

<a href="http://foo.com">foo.com</a>
<a href="/images/foo.png">foo.png</a>
<a href="../../foo.html">foo.html</a>

The new option is a checkbox in the Content section. Give it a whirl, and let me know how it goes in the support forum.

WordPress html import, Plugins

Reader Interactions

Comments

  1. Mike says

    December 5, 2017 at 11:22 am

    I’d be curious as to the intent of “fixing” internal links and what that really means. My expectation would be that formerly: /mydirectory/page.html import as: /mydirectory/page/ and a previous link to page.html at /mydirectory/ would now be to /mydirectory/page/. However, when I go to /mydirectory/ in WP all the links are still referencing .html files as in the previous site. Essentially, zero fixing occurred. Each link has to be gone through one by one and set to the new permalink structure.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

My Books

I’m a front end developer at Equinox OLI, working on open source library software. I was previously a freelance WordPress developer in higher education. You can get in touch here or on LinkedIn.

Copyright © 2023 Stephanie Leary · Contact