WordPress.org

Ready to get started?Download WordPress

Forums

Month view broken - intermittent (9 posts)

  1. Echilon
    Member
    Posted 7 years ago #

    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.

  2. Echilon
    Member
    Posted 7 years ago #

    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.

  3. Echilon
    Member
    Posted 7 years ago #

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

  4. Echilon
    Member
    Posted 7 years ago #

    Still having this problem.

  5. Echilon
    Member
    Posted 7 years ago #

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

  6. Echilon
    Member
    Posted 7 years ago #

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

  7. Echilon
    Member
    Posted 7 years ago #

    Anybody?

  8. jrawle
    Member
    Posted 7 years ago #

    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?

  9. Echilon
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic