• Resolved grazynqa

    (@grazynqa)


    Hi,

    I was asked to move a big site (1420 indexed in google) to wordpress. The problem is that there’s no db, just static php files. Is there any tool to extract content from those php files and import them to wordpress?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You won’t find anything that will be able to import from static pages to WordPress, I am reasonably certain of that.

    Are the PHP pages mostly of the same format (ie: Header, Footer, Sidebar(s) and a section for Content)?

    If so, you could find a WordPress Theme that you like (or start with one of the free ones, Twenty Fourteen is pretty good). Format this so it suits your needs, then create pages/posts for each of the old static ones by pasting in the “Content” from each page into WordPress.

    It’s not perfect, and it’s simpler if that content doesn’t contain PHP or images.

    That ought to get you the posts/pages in WordPress, albeit a LOT of work, and from there you can edit each, converting images etc to be in the regular WordPress Media folders, and then update/change theme so the site looks how you want it to.

    The other factor is SEO/Duplicate content, since Google could penalise you for duplicating pages. I would recommend setting the new site to not get indexed until you are ready to do that, and of course the pages are almost certain to have a new url. You could create redirects in your .htaccess file so the old pages are redirected to the new ones, or make sure the WordPress pages have the same url as the old (nice if you can manage it, but WordPress pages don’t end in “.php”. You could strip this in the redirect though).

    Hope this helps in some way.

    Thread Starter grazynqa

    (@grazynqa)

    Thanks for your response, it helps a lot. We’ll have to do it the hard way… There are a LOT of different pages layouts with different columns, images, buttons. I was hoping I’ll be able to extract at least all the texts.

    At least I know what to say to my client:)

    You could do that with little php programming, or if you are not into programming in php you could try to hire php programmer to fo it for you.

    If you are gonna do it yourself this should get you started:
    https://dinetweb.altervista.org/2013/12/17/php-export-html-table-csv/

    Sounds like plenty of work ??
    You can keep your design by the way by transforming it to WP theme with Html to WordPress converter. Costs some bucks but worth the effort.

    Thread Starter grazynqa

    (@grazynqa)

    thanks to all of you for your tips!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Moving a big static website to WordPress’ is closed to new replies.