WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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 '13 at 15:06
Alright... Is that in htaccess? What do I have to do to solve it? – Johan Jul 27 '13 at 15:07
Tentatively confirmed. Have you looked in trac to see if this is a know issue? – s_ha_dum Jul 27 '13 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 '13 at 15:11
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 '13 at 17:26

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.

share|improve this answer

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).

share|improve this answer
my answer might work for you – Milo Oct 8 '13 at 21:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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