WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] migrate and merge wordpress and static content (10 posts)

  1. BSK
    Member
    Posted 3 years ago #

    hi all,

    one of my sites consists of a set of static pages at my top level domain (mysite.com), and a "resources" section that runs on a wordpress install in a subfolder that points to a subdomain (resources.mysite.com). the resources section is a collection of posts, and a custom template that matches my static pages.

    i want to move all of the static content into wordpress pages so the entire site will live in wordpress. i would like to maintain the top level domain for my pages and subdomain for my posts.

    what is the best way to do this? sorry if there's an answer here already - i wasn't sure how to really search for something this specific.

    i was thinking of doing a completely new wp install to a different folder, and exporting/importing/uploading all of my data and files to the new install, so i don't mess up my existing content. then once everything is tested, just pointing my domains to the new folder. only issue is how do i maintain the subdomain for my 'resources' section?

    let me know if there's an easier way to do this - maybe i'm over-thinking it?

    thanks everyone!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    How about a combination of the technique outlined in Giving_WordPress_Its_Own_Directory (minus steps 1 & 6) plus Creating_a_Static_Front_Page?

  3. coopersita
    Member
    Posted 3 years ago #

    What you need to do is set the home page to be static (http://codex.wordpress.org/Creating_a_Static_Front_Page), and send all the posts into the "resources". All other top level sections would be pages.

  4. BSK
    Member
    Posted 3 years ago #

    thanks for getting back so quickly!

    ok, so lets say i have about 15 static pages that i want to move into wp & i want them to show as mysite.com/page1, mysite.com/page2, etc.

    if my current wp domain is resources.mysite.com, won't that make all of my new pages live at resources.mysite.com/page1, resources.mysite.com/page2, etc?

    thanks again

  5. BSK
    Member
    Posted 3 years ago #

    or would it be better to just install wp multisite, and have one wp site as mysite.com, and another wp site as resources.mysite.com?

  6. coopersita
    Member
    Posted 3 years ago #

    I would just migrate everything to the root: mysite.com:
    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site

  7. BSK
    Member
    Posted 3 years ago #

    thanks everyone. you guys effing rule:)!

  8. BSK
    Member
    Posted 3 years ago #

    hi again,

    there are alot of things in my wp site that are linked to files in the root, and vice versa. there are about 150 files and folders in my root, with some folders linked to subdomians.

    is it ok to just move all of the files in my existing wp folder into the root with all of the other files? i'd like to keep things organized but this could make things messy. any suggestions?

    also, i noticed # 13 in "Moving WordPress Within Your Site" says -
    Existing image/media links uploaded media will refer to the old folder and must be updated with the new location.

    So does that mean i will have to manually update every link in all posts/pages in wp to point to mysite.com instead of resources.mysite.com?

    thanks so much!

  9. coopersita
    Member
    Posted 3 years ago #

  10. BSK
    Member
    Posted 3 years ago #

    @coopersita - thanks!

    there are alot of things in my wp site that are linked to files in the root, and vice versa. there are about 150 files and folders in my root, with some folders linked to subdomians.

    is it ok to just move all of the files in my existing wp folder into the root with all of the other files? i'd like to keep things organized but this could make things messy. any suggestions?

    any suggestions or recommendations to keep my subdomains from getting messed up? thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic