View Single Post
Old 05-07-2006   #42
Join Date: May 2006
Posts: 2
blakekr is on a distinguished road
Hi, Mike, I'm desperate ... sorry for this wordy question.

I had to restructure my wordpress site (DOH!) and I'm finding it really hard to enter redirects because of how modrewrite interacts with them.

I think the problem modrewrite statement is:

RewriteRule ^(.+)/([^/]+)(/[0-9]+)?/?$ /index.php?category_name=$1&name=$2&page=$3 [QSA,L]

This is necessary to run my wordpress site with "permalinks", but it makes it (apparently) impossible to redirect like this:

Redirect /2005/12/30/widget-ideas/

... which mod-rewrite turns into this problem:

Is there some way I can rewrite this statement to take advantage of the fact that all my old URLs would have numbers and none of my new ones would ... without screwing up how this statement "runs" my current permalinks?

(Thinking hard ... hmm.. .but it IS possible the new ones would occasionally have a number if it showed up on the post title, like "5 ways to wash a car" ... that makes it even harder. Or sometimes posts have titles like "trends for 2006." This is tough)

Last edited by blakekr : 05-07-2006 at 02:24 PM.
blakekr is offline   Reply With Quote