Forums

Archives problem using Permalinks (26 posts)

  1. ozgression
    Member
    Posted 7 years ago #

    Go to http://www.pfjournal.com/category/budgeting and click the previous entries link. You get a 404 error.

    How do I fix this and has anyone else had thus problem.

    I am using WordPress 1.5

  2. Avenir
    Member
    Posted 7 years ago #

    Have you added the appropriate mod_rewrite rules to your .htaccess file yet? If you haven't, then you need to do this for the permalinks to work properly.

    Codex explanation:
    http://codex.wordpress.org/Using_Permalinks

  3. jpettit
    Member
    Posted 7 years ago #

  4. ozgression
    Member
    Posted 7 years ago #

    1.5 makes the htaccess by itself. I shouldnt need to add mod-rewrite rules to it. ;)

  5. ozgression
    Member
    Posted 7 years ago #

    So no-one is actually going to answer my query?

  6. Pyeman73
    Member
    Posted 7 years ago #

    NONE of my article specific links are working. Nor are archive or categories. I have been reading up on this issue and fiddling with it all night. I really hope someone sheds some light on this issue soon.

  7. James
    Happiness Engineer
    Posted 7 years ago #

    Pyeman, you did your permalinks wrong. Replace the .htm with a / .

    http://codex.wordpress.org/Using_Permalinks

  8. Pyeman73
    Member
    Posted 7 years ago #

    Thanks, but can you be a little more specific? I don't actually have .htm anywhere in my permalink structure. I am using this:
    /%year%/%monthnum%/%day%/%postname%/

    Also, does the accompanying .htaccess file need to go in my blog's directory or the main root of my website?

    Thanks very much.

  9. ozgression
    Member
    Posted 7 years ago #

    What mod-rewrite rule do i need to get the archive pages working properly. WordPress generated the htaccess file.

  10. ozgression
    Member
    Posted 7 years ago #

    Doesn't anyone else suffer from this problem? All I did was install 1.5 and select permalinks in the admin area.

  11. mahix2
    Member
    Posted 7 years ago #

    I am having a very similar problem. However, when I create the .htaccess file for some reason all of my WP admin screens become unusable (Forbidden).

    What should the directory permissions be for the archive directories and for the .htaccess file?

    Thanks in advance,
    Rick
    MahiX2.com

  12. mahix2
    Member
    Posted 7 years ago #

    argh, even more problems now.

    I just tried pasting the mod_rewrite rules into the .htaccess file myself and now my entire site is down.
    http://www.mahix2.com
    When I try to load the site, I receive the error:

    Fatal error: Failed opening required 'wordpress/wp-blog-header.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site11/fst/var/www/html/index.php on line 4

    Please Help!
    Thanks,
    Rick

  13. Dorsai65
    Member
    Posted 7 years ago #

    I'm having this problem, too - I can post, but any attempt to add a comment results in a 404. I'm using the .htaccess that a fresh/clean WP1.5 installation generated.
    I've tried a number of different permalink structures (finally settled on /%year%%monthnum%/%post_id%/), but it isn't happening.
    Here's the .htaccess, if anyone knowledgeable wants to check it...

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [S=39]
    RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1 [QSA,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1 [QSA,L]
    RewriteRule ^page/?([0-9]{1,})/?$ /blog/index.php?&paged=$1 [QSA,L]
    RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/page/?([0-9]{1,})/?$ /blog/index.php?&paged=$1 [QSA,L]
    RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /blog/index.php?s=$1&paged=$2 [QSA,L]
    RewriteRule ^search/(.+)/?$ /blog/index.php?s=$1 [QSA,L]
    RewriteRule ^category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/page/?([0-9]{1,})/?$ /blog/index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^category/(.+)/?$ /blog/index.php?category_name=$1 [QSA,L]
    RewriteRule ^author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/page/?([0-9]{1,})/?$ /blog/index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/?$ /blog/index.php?author_name=$1 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /blog/index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/?$ /blog/index.php?year=$1&monthnum=$2 [QSA,L]
    RewriteRule ^date/([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^date/([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^date/([0-9]{4})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&paged=$2 [QSA,L]
    RewriteRule ^date/([0-9]{4})/?$ /blog/index.php?year=$1 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/([0-9]+)/trackback/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&tb=1 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/([0-9]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/([0-9]+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/([0-9]+)/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&paged=$4 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/([0-9]+)/?([0-9]+)?/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&page=$4 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/?$ /blog/index.php?year=$1&monthnum=$2 [QSA,L]
    </IfModule>

    # END WordPress

  14. thinkeric
    Member
    Posted 7 years ago #

    This might help you out... I had a similar problem with the %category% tag:

    http://wordpress.org/support/topic.php?id=26500#post-151408

  15. hcm
    Member
    Posted 7 years ago #

    Using some of the hacks on the forum I was able to get the regular permalinks working as %category%/%postname%/ . However, these hacks only work if the category is a parent, I still can't get this to work if the post's category is a subcategory. The links turn out like this:

    http://www.domain.com/maincategoryname/subcategoryname/postname/

    and they all still produce 404s. Does anyone have a hack for getting permalinks to work when a subcategory is chosen? Anyone know if the WP developers are working on this bug? IMO, this is a really major bug that should have been worked out before 1.5 was released.

  16. ColdForged
    Member
    Posted 7 years ago #

    hcm, what's the URL and perhaps you could tell us what your htaccess rewrite rules are? 1.5's subcategory handling works dandy in my install.

  17. ColdForged
    Member
    Posted 7 years ago #

    Never mind, hcm, I see what you're trying to do. There does appear to be some screwiness there as far as I can tell.

  18. ColdForged
    Member
    Posted 7 years ago #

    ozgression, what about your htaccess rewrite rules?

  19. ColdForged
    Member
    Posted 7 years ago #

    Dorsai65, an URL would be helpful.

    The category thing is legitimate. Your best bet is to not try to include the category in the permalink structure. However, if you're set on it you can get around this by manually editing the .htaccess file. Open up the .htaccess file and remove all of the instances of "&category_name=$X" where X is some number, but ONLY from those lines that are not for the category archives, otherwise you'll break your category archives.

  20. Dorsai65
    Member
    Posted 7 years ago #

    http://www.dmerriman.dyndns.org/blog is the site; just a few posts from some system upgrading I did over Spring break.

  21. Dorsai65
    Member
    Posted 7 years ago #

    I'm running WP on a SuSE 9.2 box, Apache 2, PHP4, MySQL. I did my 1.5 install fresh (from scratch - no hiccups or other fussing), default .htaccess generated by WP. Everything else seems to be working just fine; it's just the bleeping permalinks (and resultant inability to accept comments) that is the hangup. I've Googled for possible solutions, and absolutely nothing has worked. I've been fiddling with the problem - off and on - for 3 days, and I'm tired of it.

    Now I have to decide if it's time to downgrade back to 1.2, live with no commenting, or (last choice) see if there's a different package with WP-like features that will actually work on my system. Please understand: I'm not fussing or irate or anything like that. WP is F/OSS, and I'm simply disappointed that it isn't working the way it should on MY system, and there doesn't seem to be any available solution to the problem.

  22. madolyn
    Member
    Posted 7 years ago #

    I've had similar angst with my per-month archive links. I'm using 1.2.2 and the permalink structure of
    /%year%_%monthnum%_%day%/%post_id%/
    but when it tries to fetch %year%_%monthnum% there's only a 404.

    When I finalise my layout I'm going to get around this with a kludge of
    index.php?m=[year]_[month]
    hardcoded into the template (or called from a separate file, whatever)

    I do have my .htaccess set up correctly and there aren't any conflicts in the .htaccess in the root directory (a subdomain; also checked the main .htaccess file) - it just doesn't work with the fancy URLs.

    I'm not particularly bothered because personally I don't see why anyone would want to load a whole month's posts at once, but I thought I'd mention it...

  23. hcm
    Member
    Posted 7 years ago #

    http://mosquito.wordpress.org/view.php?id=889 says this:
    "The only option I can see to get %category% working with greedy versions mod_rewrite is to use a subcategory separator other than '/'."

    I think this will fix my permalink subcategory problem. However, I have no idea how to do this. Which file do I open to change the subcategory separator??

  24. InfoCynic
    Member
    Posted 7 years ago #

    I'm trying to get permalinks working on my site: http://infocynic.no-ip.org and just get 404s. I'm running WP 1.5 on Apache/Win/1.3.x. mod_rewrite is on and the .htaccess is floating in my web root.

    I set /archives/%year%/%monthnum%/%day%/%postname%/ in the structure field and then hit update. I get 404s trying to click on any link.

  25. roro
    Member
    Posted 7 years ago #

    just upgrade to 1.5
    Im getting /page/2/ in the default theme
    In my theme im getting the year, month and name of the post... all good

    but I dont know what template is reading and what file to edit, I have no clue what is happening

    you can see the difference here:
    http://photo.e-roro.net/2005/03/04/tronco/
    and
    http://photo.e-roro.net/page/2/

  26. InfoCynic
    Member
    Posted 7 years ago #

    I at least solved my problem. mod_rewrite was not setup properly. Be sure that the LoadModule and AddModule lines in httpd.conf are both uncommented, and that your directory permissions have AllowOverride set correctly (I used AllowOverride Limit Options FileInfo at the advice of a friend).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.