Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #441299

    This is a very specific issue….one specific word in a blog post title/permalink in first position only cause 404 not found and posts in same word category to not list.

    In the site @ http://www.sitename.com If I create a blog post that begins with “bcca” (no quotes) the page will 404 not found.

    Example: http://www.sitename.com/bcca-has-a-new-post/

    In the backend and database the title shows correctly as “BCCA has a new post” and the permalink shows correctly as /bcca-has-a-new-post/ but the live link removes the BCCA so it becomes http://www.sitename.com/-has-a-new-post/ and results in 404 not found.

    If I put the BCCA at the end it works. Example: http://www.bcchiro.com/a-new-post-by-bcca/ That will work.

    First I thought it may be because BCCA is also one of the category name/slug. Nope. I tried to repeat the error with using another category names as first word in title and permalink of a post and they all worked correctly.

    It also doesn’t matter if the post is assigned to the BCCA category or not.

    next I found that when I clicked on the category name of BCCA below the live post which had 10 posts in it nothing would come up. The page would refresh with header, footer and sidebar but no listing of posts. The other post categories worked.

    So I just changed the BCCA category name and slug to something else and that worked.

    I tried again after changing the category name, flushing the cache, and with a new post beginning with BCCA and same result. 404.

    Anyone want to hazard a guess? I haven’t got a clue why that one word only would cause a problem.

    #441709

    Hey TheMediaman!

    Not sure what it could be. What do you have your permalinks setup as? Try creating a copy of your .htaccess file and then delete it and refresh your permalinks again in Dashboard > Settings > Reading.

    Also be sure to deactivate all plugins while testing.

    Regards,
    Elliott

    #441743

    Right when I read your post the error occurred to me. Isn’t that always the case.

    I migrated the old client’s site from http://www.sitename.com/bcca to http://www.sitename.com so I put an htaccess rule in place to send any inbound old http://www.sitename.com/bcca links and variants back to http://www.sitename.com instead of generating 404’s.

    That rule caused a nervous breakdown of the site with any new post, page or category that began with bcca. Because of the htaccess rule the site resolved it by removing the bcca in the permalink.

    Solution: I have to have the .htaccess rule to capture old inbound links that are still out there on the web. So…just don’t begin any post, page, tag or category with bcca and it all is well. My cleverness in .htaccess outclevered me on the site.

    Thanks for your quick reply…it jolted my brain to resolve the issue which was my fault. Enfold works great. You can close the thread and mark it resolved.

    #441907

    Hey!

    Great, glad you got it fixed :)

    Regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘specific word first in a blog post title/permalink causes 404’ is closed to new replies.