Comments and Archives with Rewrite
-
Hello all,
I’m trying to set up a new blog to use and as a test case for how easy it would be to migrate my MT blog over to WP. I’ve set up a permalink structure identical to that I use in MT to make that migration much easier, or so I thought. I’ve pasted it here, followed by the rewrite for the .htaccess file.
/archives/%year%/%monthnum%/%day%/%hour%.%minute%.%second%/
RewriteEngine On
RewriteBase /london/
RewriteRule ^archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /london/wp-feed.php?category_name=$1&feed=$2 [QSA]
RewriteRule ^archives/category/?(.*) /london/index.php?category_name=$1 [QSA]
RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /london/wp-feed.php?author_name=$1&feed=$2 [QSA]
RewriteRule ^archives/author/?(.*) /london/index.php?author_name=$1 [QSA]
RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9]{1,2})?.([0-9]{1,2})?.([0-9]{1,2})?/?([0-9]+)?/?$ /london/index.php?year=$1&monthnum=$2&day=$3&hour=$4&minute=$5&second=$6&page=$7 [QSA]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([0-9]{1,2})?.([0-9]{1,2})?.([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /london/wp-feed.php?year=$1&monthnum=$2&day=$3&hour=$4&minute=$5&second=$6&feed=$7 [QSA]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([0-9]{1,2})?.([0-9]{1,2})?.([0-9]{1,2})/trackback/?$ /london/wp-trackback.php?year=$1&monthnum=$2&day=$3&hour=$4&minute=$5&second=$6 [QSA]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /london/wp-feed.php?feed=$1 [QSA]
RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /london/wp-feed.php?feed=$1&withcomments=1 [QSA]
The problem is that my monthly archives do not display and the comments will not display unless I use the pop up feature.
I point on the rewrite specifically since if you were to use the URL that would be used if that weren’t in place, everything works just fine. So I’ve narrowed at least the cause of the problem in the rewrite, even if the PHP is were the issue lies.
The site in question is http://www.lifeofrobert.com/london and I’ll leave the rewrite intact so you can see the errors.
Thanks!
Robert
- The topic ‘Comments and Archives with Rewrite’ is closed to new replies.