Someone knows why this happens?

For instance, I have a post called 1987, but it does not open it when I click on the link. When I use a different permalink structure, it opens it. Why is this and how can I solve this?

FYI: I don't get a 404 error, I just get a Firefox error where it says: this page is not redirecting it well

  • 2
    this might have something to do with the date archive rewrite rule- WordPress thinks your numeric post name is a request for a date archive for the year 1987
    – Milo
    Jul 27, 2013 at 15:06
  • Alright... Is that in htaccess? What do I have to do to solve it?
    – Johan
    Jul 27, 2013 at 15:07
  • 1
    Tentatively confirmed. Have you looked in trac to see if this is a know issue?
    – s_ha_dum
    Jul 27, 2013 at 15:08
  • No, but I did now... Can't see what to do actually. Is there a solution for this or not?
    – Johan
    Jul 27, 2013 at 15:11
  • 1
    This may take some effort to figure out. I'd bet that it does have something to do with date archives rewrites, as suggested by @Milo. If that is the case it is a bug in Core and possibly a difficult one. That is why I asked if you had searched Trac.
    – s_ha_dum
    Jul 27, 2013 at 17:26

2 Answers 2


Sorry I didn't follow up on this. You mentioned you weren't using date archives. You can change the date archive structure to remove the conflict with /%postname%/:

function wpa_change_date_structure(){
    global $wp_rewrite;
    $wp_rewrite->date_structure = 'date/%year%/%monthnum%/%day%';
add_action( 'init', 'wpa_change_date_structure' );

So now after permalinks are flushed, date archive URLs will be prefixed with date/, so numeric postnames will no longer match the date rewrite rule.


You can solve this by updating the post's slug to something besides a number. Other than that, I haven't found a solution (while still keeping post-name as the permalink).

  • my answer might work for you
    – Milo
    Oct 8, 2013 at 21:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.