WordPress.org

Forums

Redirecting Permalinks Challenge (7 posts)

  1. mynotetakingnerd
    Member
    Posted 2 years ago #

    I'm 70% there with my new project.

    I was needing to redirect my old blog at wordpress.com to my new self hosted site.

    I was given this code to do the redirects once I bought the domain mapping and redirect package at wordpress.com

    RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ http://domain.com/$4 [L,R=301]

    It worked great except for the following:

    1. some posts (about 30%) will not redirect and it seems it's because the slugs are not the same.

    So my question here is do i do individual redirects which wordpress.com doesn't allow you to do inside it's interface.

    Or do i just change the slugs and wait for google to recrawl?

    2. My categories and pages won't redirect.

    I believe the reason is because this redirect is for http://www.mynotetakignerd.com/blog and the challenge I WAS having there was that wordpress.com uses the year/month/date permalink which the code above handled.

    The categories in old site are site:/category/

    The pages in old blog are site:/

    Any help would be appreciated as to htaccess file redirects or whatever I have to do to fix these?

    Thanks

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Or do i just change the slugs and wait for google to recrawl?

    How many posts are we talking about? A percent of is unclear.

  3. mynotetakingnerd
    Member
    Posted 2 years ago #

    389 total post....

    probably 80 not redirecting correctly

  4. mynotetakingnerd
    Member
    Posted 2 years ago #

    All category pages and pages (not posts) are not redirecting as well because the permalink isn't the same

  5. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Is there not any specific pattern(s) to the ones that do not redirect?

  6. mynotetakingnerd
    Member
    Posted 2 years ago #

    What seems to be the case is two things.

    1. most have a "2" at the end of the slug for some reason at the old blog but not the new.

    2. i have a plugin at the new blog that takes out words like "The" "and" etc.. so I think that screwed some things up on other posts mathinc up...

    3. Finally the category and pages at wordpress.com permalinks are not the year/month/day that the posts are so the htaccess code doesn't work for those and i get error pages

  7. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    I would:

    1. Manually edit the old blog's export file and fix the -2 issue (keep an unedited version!!).

    2. Get rid of that plugin.

    3. Create a NEW db, import that edited file, fix wp-config.php to point to it.

    4. Set same permalink structure as was in use.

    This should solve this.

Topic Closed

This topic has been closed to new replies.

About this Topic