• I have a bit of a weird problem:
    – If the permalink structure is for instance “/%postname%” or “/%post_id”, the ‘pretty URLs’ don’t work at all. Neither for pages, custom post types or posts.
    – If the permalink structure starts with something static, everything works just fine. For instance “/archive/%postname%/”

    It’s not a plugin. I’ve checked by disabling all. No change.
    It’s not the theme. An identical duplicate is running on my local dev host and one is on another dev host. It works just fine on there.
    It’s not the .htaccess as I am getting WP’s 404 page, not Apache’s.

    I’ve googled the entire day without finding anything helpful on the matter.

    So, any ideas on why this happens?

    Any help is greatly appreciated

Viewing 1 replies (of 1 total)
  • Thread Starter dekket

    (@dekket)

    Update:

    I’m starting to wonder if it’s not the theme after all. If so, I’d like suggestions as to what it could be.

    What I did ‘just to make sure I had tested everything’ was to enable the default TwentyThirteen theme, re-set the permalinks to /%category%/%postname%/ which did NOT work before. And voilá! All of a sudden, it works. I then switched back to the theme I’ve designed, and the permalinks still work!

    However, if I now go in and fiddle with the permalinks, they stop working. I have to re-do the above steps in order to get them working again.

    To my knowledge, themes don’t mess with permalinks unless you explicitly do something to do just that. Since I’ve coded it myself (html5blank as a base,) this should not happen. But, I’m at a loss here.

    Would really appreciate some help on this.

Viewing 1 replies (of 1 total)
  • The topic ‘Permalinks not working unless they start with static text’ is closed to new replies.