Comments and Archives Unveiled

Since I’ve had several people ask over a longer period now, I thought that I might as well just put up the source to my archives and comments files. It’s not pretty, and it was never meant for the public (and thus I will not support these just now). But for those of you who can find something interesting in there, feel free to rummage around.

wp-comments.phps and archives.phps.

And if you want to setup the archives file to be shown if people peel the URI down to /archives/, then you can use this .htaccess code:

RewriteRule ^archives/$ /archives.php
RewriteRule ^archives$ /archives.php

That seems to do the job for me.

But again, I’m not going to support these, as I would rather spend the time on Kubrick 1.2.5. But feel free to help each other out in the comments of this entry. (Also, I make use of a few plugins and some code that isn’t mine. You can find the plugins here, and the sortable archives is here. Though the version I use, has been customized a lot)

9 Responses to “Comments and Archives Unveiled”


  1. 1 Scott

    Hmm, when I use those rewrite rules it only works when I put /archives in the URL, with no trailing slash. When I use a trailing slash, it doesn’t work.

  2. 2 Ben

    Thanks a lot Michael for offering Your modified files to us.

  3. 3 Switch

    RewriteRule ^archives/?$ /archives.php

    Is better :) The ‘?’ menas the trailing slash is optional, so if you type ‘archives/’ instead of ‘archives’ it’ll still work.

  4. 4 Scott

    Now I get an internal server error when I use that rule…hmmm

  5. 5 Switch

    Example, cut from my .htacces:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^urchin/?$ /urchin/index.cgi
    RewriteRule ^portfolio/?$ /portfolio/index.html
    RewriteRule ^ait/?$ /ait/index.html
    RewriteRule ^portal/?$ /portal/index.html
    RewriteRule ^universe/?$ /universe/index.php

    You have to point to the index files, because if you just assign an directory it won’t fetch the index :) This works for me.

  6. 6 agk

    I dunno if it’s right but you can save one line of

    RewriteRule ^archives/$ /archives.php
    RewriteRule ^archives$ /archives.php

    making

    RewriteRule ^archives?/?$ /archives.php

  7. 7 Klintron

    Anyone using nicer archives with Kubrick 1.2.4 willing to share their source?

  8. 8 ubergeek

    Anyone using them with Kubrick 1.2.5?

  9. 9 Chris

    If any one is interested in the archives with kubrick (1.2.6), they can contact me thru my site.

Comments are currently closed.