Grow your CSS skills. Land your dream job.

WordPress Blog Blend Issue

  • # June 17, 2013 at 5:52 pm

    Hey all,

    I have an scenario that I have not encountered yet and I was curious if anyone had tackled it or knew of a way to address it.

    There’s a web project I’ll be redesigning and the issue is that it’s a SUPER outdated version of ModX that’s running the main site, and then they have a separate blog set up in WordPress under the /blog/ URL. So for example, you’ll have http://websiteurl.com/blog/somekindofarticle

    They are now looking to just bring the whole thing into WordPress since they already know how to use it for the blogging capability and they want the redesign to just be incorporated into it.

    What happens to all the articles that are behind the “/blog/” url? Is there any way to maintain that part of the url for all future blog posts while the rest of the site is within just the standard pathway? Or is it better in the long run to just bring all the posts into the fold of the website and create some kind of htaccess redirect for anyone who has the old /blog/ urls?

    # June 17, 2013 at 7:31 pm

    You can expert all the blog posts, then import them into the new one.

    # June 17, 2013 at 7:37 pm

    You can keep the `/blog` prefix if you want so that all posts remain under that.

    # June 18, 2013 at 1:10 am

    But can you keep the blog prefix for only blog posts? I haven’t tried to section off different areas like that.

    edit * Oh… I think I’m understanding now that the permalinks only apply to posts right? Leaving pages on the top level by default, but all posts would follow the permalink structure of /blog/%postname%/. Do I have that right?

    # June 18, 2013 at 10:50 am

    If all that’s on the current WordPress installation is posts, just do a basic export to xml / wxr and import to the new “root” installation. You’ll have to play with the permalink settings a bit if you’d like to keep the /blog/.

    If there’s a bunch of widgets or random misc. pages as well, you’ll need to dump the DB and import that way.

    # June 18, 2013 at 12:40 pm

    Is the `/blog` root directory of WP install? or is it custom permalink structure?

    You might not be able to get rid of it. Unless you point Apache to it as public facing folder. Then create the `/blog/%postname%/` structure. For everything else you can create custom post type and rewrite the URL slug. You can use a plugin for custom post types or you can create one yourself. see my comment here: http://css-tricks.com/forums/discussion/comment/104160/#Comment_104160

    # June 18, 2013 at 12:49 pm

    And of course you could always export content, import it into clean WP install, then just use `.htaccess` to rewrite each `/blog/*` request to `/` but the problem is now you can’t have `/blog` as your API if the company actually has a blog… you could use a different name like `/journal` or `/out-blog`…

    hope that help,

    # June 18, 2013 at 12:55 pm

    @mcjohnst Yeah it’s JUST posts. To @AlenAbdula it is installed right on the /blog/ directory and functions out of there – it’s not a permalink manipulation from the root. So I’m going the other way – putting it in the root and then adjusting it to maintain the /blog/ link.

    Definitely helps – thanks guys!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".