• I’ve searched these and other forums, and cannot find an answer to this — although I have seen a few similar questions.

    I want to migrate a static HTML site to WordPress. I have about 50 HTML pages I would like to transform into WP Pages without a lot of hand page creation and copy/paste drudgery.

    To make things a little more interesting, this site already has WP installed under the /blog directory. My intent is to keep it there and run the site from that install (or at least that directory), but I want to display the majority of the site from root (www.mydomain.com), with the Blog posts displaying from the https://www.mydomain.com/blog directory/page/URL.

    I have found and read this page:
    https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory
    but frankly I don’t get how to apply that to my situation.

    Also, I would like the existing page URLs to remain active if possible. IOW, any existing (even inbound) link to https://www.mydomain.com/about.html should display my WP “about” page, which in my case is (will be) permalinked as “%pagename%”, with no “.html” Is that even possible?!

    Finally, which makes more sense? To upgrade and tweak the WP install under the /blog directory to accomplish all this? (I have just a few blog posts to worry about.) Or to start with a fresh install under a new directory, e.g., /wp?

    Bear in mind I want to keep the HTML site active and untouched until I’m ready to “cut over” to WP. (I.e., delete index.html and being using index.php as home page.)

    Any help would be much appreciated!

    Cass

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Via .htaccess redirect you can point about.html to https://domain.com/blog/about and so on.

    I don’t THINK you can, in one blog, have the pages point to root and the blog posts point to a subdir, but I may be wrong. Certainly you could ‘cheat’ and have another htaccess redirect for domain.com/about to domain.com/blog/about but I’m almost positive there’s a better solution.

    As for importing static HTML, alas, the best way is to copy/paste. I say this because EVERYONE customizes HTML a little differently, and each automated import has to be tweaked. For 50 pages, it’s faster to crack the html in a text editor, copy the content, and paste it into the HTML editor for WP (TURN OFF the visual editor for this, it’ll just piss you off).

Viewing 1 replies (of 1 total)
  • The topic ‘How to import existing HTML site into WP?’ is closed to new replies.