Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Redirecting Old Blog Posts to New Directory

Updated blog and redirect stopped working

12:41 am on Mar 11, 2013 (gmt 0)

New User

10+ Year Member

joined:Feb 13, 2004
posts: 3
votes: 0

A couple of years ago, I moved my word press blog down a directory level, from domain.com to domain.com/blog. I then did a redirect so that any path to an old page ended up going down to the right path. For example, an old blog post like domain.com/2006/10/01/post resolved to domain.com/blog/2006/10/01/post. And it was done so that I can add new website pages, and they did not trigger the redirect.

I recently upgraded my wordpress software and theme, and now the redirect isn't working. All my old blog posts just go to domain.com/blog. For example, domain.com/2006/10/01/post goes to domain.com/blog, not to domain.com/blog/2006/10/01/post. For all I knew it's been happening for a while.

I checked my .htaccess, and there is nothing there I can find that would redirect the way I need, and frankly I don't remember what I did to get it working before. Perhaps it was some interaction with 404. Perhaps it was an interaction with the database backend, which was upgraded automatically. I don't know.

Any advice would help.
7:27 am on Mar 11, 2013 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 106

welcome (back) to WebmasterWorld, abound!

please post the relevant mod_rewrite code from your .htaccess file using example.com from your domain.

you don't have a backup of your previous .htaccess file?

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members