• Resolved mairaj

    (@mairaj)


    I have a 2-3 year old static HTML based website, where I have blog attached to it running on WordPress. The url of the blog is www-mywebsite-com/blog

    I am now willing to convert/create entire website on WP. I have exported the old blog to xml using the option given under tools in WP.

    My question is how can I import the xml in new website so that it is exported to www-mywebsite-com/blog/. I did a test importing it normally and everything appeared under root, I mean www-mywebsite-com/

    Kindly guide.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Assuming you have WordPress installed in the root:
    1. Create a page called “Blog”
    2. Go into Settings > Reading
    3. In the first option “Front Page Displays”, check “A static page”
    4. For the front page, simply select your home page
    5. For the posts page, select “Blog”

    From there you should be able to type mywebsite.com/blog. If you don’t assign the “Posts Page”, then WordPress doesn’t know where to display them. All your posts are being shown on the homepage (root) because by default that’s where WP displays them!

    Thread Starter mairaj

    (@mairaj)

    Thank you for your solution ??

    Followed the instructions but no luck, same thing happened! I basically was concerned about the SEO and lots of 404 errors however I found this htaccess code online and it seems to have worked nicely.

    RedirectMatch 301 /blog/(.*) https://www-my-website-com/$1

    All my old urls are now correctly redirecting to new urls.

    Is the above a good solution to save SEO?

    Thank you again

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exporting Old WP Posts and Pages’ is closed to new replies.