Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2007-03-24, 10:33 PM   #1
JK
Well you know boys, a nuclear reactor is a lot like women. You just have to read the manual and press the right button
 
Join Date: Nov 2003
Posts: 157
Wordpress 301 Redirect after Permalink Change

I've got a blog that uses wp autoblog and RSS feeds, as well as posts written by me. I want to disallow google from spidering the rss feed content, so I've changed the permalink structure from just /%postname%/ to /%category%/%postname%/, and disallowed the feed category in my robots.txt.

The problem is that now all of the old posts (1000+) will return a 404 error to Google, which is not ideal. I would like to perform a 301 redirect to the new permalink category if the wordpress class wp_query discovers a 404, but the post is actually valid.

Is there a way I can modify the class to do this? Maybe do some kind of mod_rewrite magic?
__________________
To alcohol! The cause of, and solution to, all of life’s problems
JK is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:34 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc