WordPress.org

Forums

[resolved] need htaccess redirect help from old blog to new with different URL structure (1 post)

  1. jhmilcom
    Member
    Posted 1 year ago #

    I have moved content from an old WP blog to a new one that already exists--both created by a previous blog manager within the company. The situation I'm running into is that the old and new blogs have different URL structures, and I'm having problems finding the answer on how to correctly add the proper 301 redirect to my old blog's htaccess file so that it redirects to the new site with the different URL structure including the addition of ".html".

    Here's how the URL structures are for posts on both blogs:

    OLD BLOG:
    oldblog.com/2014/03/19/title-of-post/
    /%year%/%monthnum%/%day%/%postname%/

    NEWER BLOG:
    newblog.com/2014/03/title-of-post.html
    /%year%/%monthnum%/%postname%.html

    The new blog URL structure doesn't have the day, and the post title is followed by .html

    So, I want my htaccess file to redirect requests for posts on the old blog URL to the posts on the newer blog, and all other requests on the old blog should just redirect to newblog.com

Topic Closed

This topic has been closed to new replies.

About this Topic