Stephanie Leary

Writer and WordPress consultant

  • Books
    • Content Strategy for WordPress (2015)
    • WordPress for Web Developers (2013)
    • Beginning WordPress 3 (2010)
  • Blog
    • Fascism Watch (2016-17)
    • Content Modeling for WordPress series
    • WordPress Hidden Gems series
  • Work
    • Portfolio
    • Services
    • WordPress Plugins
    • WordPress Themes
    • Presentations and Interviews
    • on GitHub →
  • About
    • Press Kit
  • Contact
    • Mailing List

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

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 *

Latest WordPress Book

Content Strategy for WordPress

A short book for content strategists and managers on implementing a complete content strategy in WordPress: evaluation, analysis, content modeling, editing and workflows, and long-term planning and maintenance.

Read the sample chapter

Kindle Nook iBooks Kobo Smashwords

WordPress for Web Developers

WordPress for Web Developers (9781430258667)

This is a book for professional web designers and developers who already know HTML and CSS, and want to learn to build sites with WordPress. The book begins with a detailed tour of the administration screens and settings, then digs into server-side topics like performance and security. The second half of the book is devoted to development: learning to build WordPress themes and plugins.

This is the second, much-revised and updated edition of Beginning WordPress 3, with a more accurate title. Everything’s been updated for WordPress 3.6.

WordPress for Web Developers is out now. See what's inside...

The best WordPress features you’ve never noticed

  • WordPress Hidden Gems: Screen Options
  • WordPress Hidden Gems: Bulk Edit
  • WordPress Hidden Gems: Private Status
  • WordPress Hidden Gems: Dashboard Feed Readers
  • WordPress Hidden Gems: Options.php

Content Modeling for WordPress series

  • Content modeling for WordPress, part 1: analyze content
  • Content modeling for WordPress, part 2: functional and organizational requirements
  • Content modeling for WordPress, part 3: a sample content model

This is an excerpt from Content Strategy for WordPress.My latest books are Content Strategy for WordPress (2015) and WordPress for Web Developers (2013). Sign up to be notified when I have a new book for you.

Copyright © 2022 Stephanie Leary