Support » Fixing WordPress » 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I as well wanted a permalink structure with timestamps only. Whatever I tried, I didn’t get the comments to work. I got the rewrite rules to work by splitting them up. However, I now use a nightly build and everything works like a charm (except for trackbacks but rbowen said he’s looking into it). Have a look at this thread: http://wordpress.org/support/3/9802
    Morgaine

    So, if I’m reading the posts you referred to correctly, I need to download and install one of the “bleeding edge” installations of WordPress to get this permalink to work?
    Basically, I’m not sure what nightlies means, so a helpful pointer to that will probably get me all set up.
    Thanks!
    Robert

    Bueller?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Comments and Archives with Rewrite’ is closed to new replies.