• Resolved brightmole

    (@lshafe)


    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://ww.wp.xz.cn/plugins/import-html-pages/

Viewing 1 replies (of 1 total)
  • Plugin Author Stephanie Leary

    (@sillybean)

    URLs are fully qualified in the rewritten links: http://example.com/abc/. You could use the Migrate DB plugin 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.