• Resolved rvc2

    (@rvconnelly)


    A few years ago I created a website (using Dreamweaver) which has about a dozen static html pages. Subsequently, I added a WordPress blog using a subdirectory (www.rendervisionsconsulting.com/blog) and simply included a link to the blog in the sites’ navigation. Now, I want all pages of the site to reside in WordPress and I’m a little puzzled as to the best way to do this.

    I was going to start by simply recreating each page in WordPress, and then, immediately before publishing each page, delete the non-WP html page on the server (retain it locally, just in case) to avoid duplicate URLs.

    The first problem I’m running into is when I try to re-create the home page in WordPress, the permalink (which I assume will also be the site URL) created by WordPress is showing as http://www.rendervisionsconsulting.com/blog/render-visions-consulting/. I need it to be http://www.rendervisionsconsulting.com. The permalink field cannot be edited to down to that; only the last section /render-visions-consulting/ is editable.

    I assume I need to go into Settings >> General and change the Site Address (URL) from http://www.rendervisionsconsulting.com/blog to http://www.rendervisionsconsulting.com (remove “/blog”). Do I need to move any WP folders before doing this?

    The styling of the html pages is very different from the blog styling and I would like that to continue for that to be the case going forward. So, I realize I will need to create a custom template which I will do along with a copy of the CSS stylesheet that supports the design of the html pages. Do I also need to create a child theme?

    To complicate matters, I’m using WPtouch Pro for support of mobile friendly pages. Should I deactivate that plugin before incorporating the html pages into WP?

    I have checked Codex and the these WP Support Forums and nothing quite matches what I’m trying to do here. I’m not so worried about an automated way to import content as I am about how and where to move WordPress folders and files without making a mess. Any recommendations on how to best to do this would be greatly appreciated.

Viewing 15 replies - 1 through 15 (of 15 total)
  • To the first question. Yes you need to move the install into the root folder for the domain.

    If you are using a theme you pirchased or got from the theme directory, then you will want to make a child theme.

    If I understand your question regarding wp touch pro, you shouldn’t need to deactivate it.

    Thread Starter rvc2

    (@rvconnelly)

    Thanks for the reply. I made the change (moved wp install into root folder) and followed instructions in codex regarding “Using a pre-existing subdirectory install” but now I’m get 404 page not found errors for all of my blog articles. Any assistance would be appreciated.

    Thread Starter rvc2

    (@rvconnelly)

    The wp theme template (atahualpa) renders fine but the blog text/content is no longer being found. (?)

    Hi. Did you change your database entries?

    Check out this page: http://codex.wordpress.org/Moving_WordPress

    Your database may have the old URL structure with the directory.

    Hi. Do you know if you changed the URLs of any individual pages? The menus may be pointed at the old page urls. You would do this by going to edit the page and looking towards the top, just below the page title.

    If you did you will need to change your menu to point to the new page urls.

    Thread Starter rvc2

    (@rvconnelly)

    Looking into the database entries now. I think you might right about that. I will re-post here if that resolves.

    Regarding URL changes, I haven’t modified any URLs of any individual pages but I may have some issues with absolute absolute paths vs. relative. I will look into that after the database entries. Thanks again for your help!

    Thread Starter rvc2

    (@rvconnelly)

    Wow, what a nightmare, I’ve been researching this until I’m cross-eyed but no fix yet. Still get 404’s for all existing posts.

    I have been looking at the db but the only thing that looks like a URL in the wp-posts table is the guid. And according to codex we should “Never, ever, change the contents of the GUID column, under any circumstances.”

    I’ll need to look at this again tomorrow with a clear head.

    A tool like this https://deliciousbrains.com/wp-migrate-db-pro/ can usually help you with transferring db between installs. There also some free tools out there. I would look into site migration plugins. That will help you output the database with the new url structure. Or you can try a cloning plugin as well.

    Just make sure whichever you use that it will adjust the database to the new url.

    This should also work: https://wordpress.org/plugins/duplicator/

    Thread Starter rvc2

    (@rvconnelly)

    Thanks for the tool suggestions. Looking into that now.

    Hi RV,

    There is something quick that you can do as well

    WordPress has three components

    WordPress core files (packaged with wordpress installation)
    Wordpress Content (Editable and Customizable, includes Themes and Plugins)
    WOrdpress Database (Has all the data that your site feeds and breeds upon)

    So, you need to take a backup first (database and content)

    Now reinstall wordpress on root
    Upload content
    Enable themes and plugins
    Make changes to your database using texteditor like Notepad++
    (search for url and do a all in one search and replace [old url to new url])
    Import your database.

    Check if its working fine.

    Hi

    Marvel labs suggestion is good but be careful of replacing database with a text tool. If you replace a url in a widget it will break the widget as the database structure counts the number of characters in strings. It’s technical stuff and I may not be explaining it with the correct terminology.

    For that reason I find it easier to use a tool to migrate the database

    Thread Starter rvc2

    (@rvconnelly)

    I used the velvet blues plugin as suggested in codex for this type of URL issue. The text now displays for all my blog articles but most of the images are still not showing. For example, this article seems fine but most are still missing images like this one. I emailed the plugin developer to see if they have any suggestions.

    My next dilemma is the fact that my main blog page (list of excerpts from all posts) is still coming up 404 page not found. I’m quite sure it’s a url issue combined with the fact that I’ve got an index.html file in my root directory combined with an index.php file. Any thoughts on how to remedy this? Thank you.

    Thread Starter rvc2

    (@rvconnelly)

    Well, I’ve been beaten into a frustrated mess by WordPress. I cannot afford to spend more time on this. I’ve burned off almost a week trying to make it happen. Ran into walls at every turn. Thankfully, I was able to reverse everything and get my site working again. I’ll simply create mobile friendly pages for the non-wp html pages using dreamweaver. Was hoping to get those pages into wp so I could use WPtouch. Oh well.

    Thank you’s to byanofsky and Marvel Labs for your time on this.

    Thread Starter rvc2

    (@rvconnelly)

    Closed.

    Thread Starter rvc2

    (@rvconnelly)

    Marking as resolved.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Migrate non-WP html pages into existing WordPress site’ is closed to new replies.