• Resolved trixee

    (@trixee)


    I have a website that has a number of pages as well as a blog, and am using pretty permalinks. Everything was working fine until yesterday, when I did a blog post. The blog landing page, and all other pages, worked fine, but when I clicked on a blog post, I’d get a 404 Page Not Found error.

    A bit of research indicated that this is probably related to pretty permalinks. I switched to default permalinks, and that fixed the blog posts but now all the page links were broken. Switching back to pretty permalinks still gave me the 404 error on the blog posts.

    As I’m using IIS, I tried adding the rewrite rule here (https://www.iis.net/learn/extensions/url-rewrite-module/enabling-pretty-permalinks-in-wordpress) to my web.config file, but that just gave me a 500 internal error across the whole site.

    I don’t understand what could have triggered the break.

    Does anyone have any ideas on what else I can try?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    I switched to default permalinks, and that fixed the blog posts but now all the page links were broken. Switching back to pretty permalinks still gave me the 404 error on the blog posts.

    If the default setting works, then try reading Using_Permalinks before setting a custom permalink structure again. If clearing your Permalinks does not alleviate the issue, this could be attributed to anything from a web server configuration to a bad WordPress install.

    Thread Starter trixee

    (@trixee)

    I tracked this down to a very strange issue where WordPress didn’t like it if the slug contained certain words, which just happened to be related to the name of the website.

    Moderator t-p

    (@t-p)

    Glad to know it ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘404 error on blog posts, using IIS’ is closed to new replies.