• Hello,

    I have a static html website, located in the public_html directory on my server. I want to slowly migrate this website, page by page, into wordpress.

    It’s a big site with around 1,000 pages. My idea being that I install wordpress into the same public_html directory as the static pages and start with the new index.php page, but have all my other static pages available. Both the wordpress pages and static pages will have the same nav menu, so to begin, the index.php page will have its first nav link to “page1.html” – so clicking this will take you to the static page1.html page. Once I have created “page1” in wordpress I can remove the static html page from the server and relink the page in the wordpress nav menu. And so on for all the pages.

    Is this even possible? It’ll take a while to move the whole site onto wordpress, so doing it this way would be preferable, one page at a time. I just don’t know if it can be done. Any ideas how to achieve this would be greatly appreciated!

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @leojez

    I would like to suggest that you consider creating a subdirectory (public_html/wordpress) on your domain, such as “yourdomain/wordpress website.”

    This approach will enable you to convert your HTML website to WordPress gradually, page by page.

    Additionally, you can set the navigation link on your HTML navigation menu to point to “yourdomain/wordpress/blog,”.

    Thanks.

    Yes, it is possible to gradually migrate your static HTML website into WordPress, page by page. Here’s a suggested approach:

    Install WordPress: Start by installing WordPress in the same public_html directory where your static HTML pages are located. Or you can create a file like wordpress_website file.

    Create the Index Page: Design and develop the new index.php page within WordPress. This will serve as the home page for your website. You can replicate the design and content of your existing static index.html page.

    Set Permalinks: In the WordPress admin dashboard, go to Settings > Permalinks and set up the permalink structure to match your existing static HTML pages. This will ensure that the URLs of your new WordPress pages match the URLs of the corresponding static pages.

    Create WordPress Pages: Start creating WordPress pages one by one, matching the structure of your existing static pages. For example, create a “page1” in WordPress that corresponds to “page1.html” on your server. Copy the content from the static page and paste it into the new WordPress page.

    Link to Static Pages: In your WordPress navigation menu, create links to the static HTML pages that haven’t been migrated yet. For example, the “page1” link in the WordPress menu should point to “page1.html” on your server.

    By following these steps, I think you can migrate your static HTML website to WordPress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Installing wordpress into the same directory as existing static html website’ is closed to new replies.