homepage Welcome to WebmasterWorld Guest from 54.227.34.0
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Redirecting Old Blog Posts to New Directory
Updated blog and redirect stopped working
abound

10+ Year Member



 
Msg#: 4553229 posted 12:41 am on Mar 11, 2013 (gmt 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.

 

phranque

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



 
Msg#: 4553229 posted 7:27 am on Mar 11, 2013 (gmt 0)

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?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved