Title: HTML href processing and permalinks
Last modified: August 22, 2016

---

# HTML href processing and permalinks

 *  Resolved [brightmole](https://wordpress.org/support/users/lshafe/)
 * (@lshafe)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/html-href-processing-and-permalinks/)
 * I have 3,900 html files and 3,600 images to import. I plan to use permalinks 
   which are the name of the html files with no extension. I can search and replace
   the html files before import but I need to know exactly how URLs are processed.
   My plan is, if I have a file called abc.html to change all references in the 
   HTML to href=’abc’, is this correct or do I need a slash at the beginning and
   end or do you do that?
 * The images are in a sub-directory of the same directory the html files are in
   and so abc.jpg I will reference as src=’images/abc.jpg’. Will these be loaded
   correctly into the media area?
 * I also have anchor href links directly to the images (e.g. anchor href=’images/
   abc.jpg’), how do you process these?
 * I will testing on my local machine and then copying the files to the server and
   repeating the HTML Import 2 there. I therefore use all relative names as the 
   path will change.
 * [https://wordpress.org/plugins/import-html-pages/](https://wordpress.org/plugins/import-html-pages/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * (@sillybean)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/html-href-processing-and-permalinks/#post-5567022)
 * URLs are fully qualified in the rewritten links: [http://example.com/abc/](http://example.com/abc/).
   You could use [the Migrate DB plugin](https://wordpress.org/plugins/wp-migrate-db/)
   to move the imported site from your local machine to live without having to search
   and replace all the URLs manually.
 * The plugin should locate images in subdirectories, yes. Links to the imported
   images in the media library will also be full URLs.

Viewing 1 replies (of 1 total)

The topic ‘HTML href processing and permalinks’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/import-html-pages.svg)
 * [HTML Import 2](https://wordpress.org/plugins/import-html-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-html-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-html-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/import-html-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-html-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-html-pages/reviews/)

## Tags

 * [href](https://wordpress.org/support/topic-tag/href/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/html-href-processing-and-permalinks/#post-5567022)
 * Status: resolved