Kurt McKee
Tue, 17 Jan 2006 08:51:48 -0800
Hello, I've been having a deuce of a time getting one particular redirect to work for my Wordpress configuration. I'm wanting to use links of the form /blog/year_month.html for my monthly archives. For January 2006, for instance, the link would be /blog/2006_01.html. Unfortunately, I'm receiving a 404 error. (By the way, Wordpress accepts the monthly archive request in the form index.php?m=200601)
Directory / {
Handler common {
}
}
# ====================
# /blog doesn't exist
# ====================
Directory /blog {
Handler redir {
Rewrite "^/$" "/wordpress/index.php"
# =====================
# THIS IS THE KEY LINE
# =====================
Rewrite "^/([0-9][0-9][0-9][0-9])_([0-9][0-9])\.html$"
"/wordpress/index.php?m=$1$2"
Rewrite "^/(.+)\.html$" "/wordpress/index.php?name=$1"
}
}
Extension php {
Handler phpcgi {
Interpreter /usr/bin/php-cgi
}
}
Does anyone have suggestions where I'm going wrong?
Thank you for any assistance!
Kurt McKee
_______________________________________________
Cherokee mailing list
Cherokee@lists.alobbs.com
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee