WordPress.org

Support

Support » How-To and Troubleshooting » Month view broken – intermittent

Month view broken – intermittent

  • I’m using WordPress at http://leghumped.com/blog/, but I always give the address as http://leghumped.com/ on forums etc. I’ve done a bit of custom mod_rewriting to suit my needs, and sometimes I get a wordpress 404 when I try to view certain months’ archives, even if there are posts that month. It only happens on some months, not on others. My .htaccess is below:

    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^$  /blog/
    RewriteRule ^feed/?$ /blog/feed/
    RewriteRule ^/wp/([^/]*)$ /blog/$1/
    RewriteRule ^index.php$  /blog/index.php
    RewriteRule ^sitemap.xml.gz$  /blog/sitemap.xml.gz [NC]
    RewriteRule ^sitemap.xml$  /blog/sitemap.xml [NC]
    RewriteRule ^gallery([^/]*)/?$ /blog/gallery/ [NC]
    RewriteRule ^archives([^/]*)/?$ /blog/archives/ [NC]
    RewriteRule ^page/9400/?$ /blog/inspiron-9400/ [R,NC]
    RewriteRule ^page/magician/?$ /blog/magician/ [R,NC]
    RewriteRule ^page/magicianrom/?$ /blog/magician/ [R,NC]
    RewriteRule ^blog/magicianrom/?$ /blog/magician/ [R,NC]
    RewriteRule ^page/xp/?$ /blog/xp-setup-screens/ [R,NC]
    RewriteRule ^page/([^/]*)/?$ /blog/$1 [R,NC]
    

    To see what I’m talking about, http://leghumped.com/blog/2006/12/ doesn’t work, however http://leghumped.com/blog/2007/01/ does. You can see that both months have posts at http://leghumped.com/blog/archives/

    Thanks for any help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Since I’ve started trying to fix this, it now appears to be happening on certain posts aswell. I’ve tried updating my permalink structure, but I’d really like to fix this ASAP.

    Sorry to bump this, but I really need a solution. My blog doesn’t work at the moment.

    Still having this problem.

    I really need a way to fix this now, my site has been down for nearly two days.

    Please could I get some help with this, I’ve tried everything I can think of.

    Anybody?

    It that your whole htaccess? Where are the lines that are inserted automatically by wordpress? If you remove the lines you have inserted, and leave just the wordpress ones, do the archive pages work correctly?

    I’m surprised your rewrite rules work, for example shouldn’t ^gallery actually start ^/gallery
    Yet they do seem to work, so the initial / must be optional.

    Just one question: why don’t you install your blog in the root, rather than rewriting every URL to point to the /blog directoy?

    Problem sorted, it was caused by old permalinks in the ‘guid’ column of the database. I had to manually update every entry, but it works now. Thanks anyway.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Month view broken – intermittent’ is closed to new replies.
Skip to toolbar