Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
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 '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
1  
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
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 '13 at 17:26

2 Answers 2

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

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

Your Answer

 
discard

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.