Title: BUG: Permalink rewrite rule wrong
Last modified: August 18, 2016

---

# BUG: Permalink rewrite rule wrong

 *  [pankaj](https://wordpress.org/support/users/pankaj/)
 * (@pankaj)
 * [22 years ago](https://wordpress.org/support/topic/bug-permalink-rewrite-rule-wrong/)
 * Hi All
    There seems to be a bug in the rewrite rules genrated by default install
   of mingus release. For the individual post with the setting of /archives/%year%/%
   monthnum%/%day%/%post_id% It spits out RewriteRule ^archives/([0-9]{4})?/?([0-
   9]{1,2})?/?([0-9]{1,2})?/?([0-9]+)?([0-9]+)?/?$ /haanbhai/index.php?year=$1&monthnum
   =$2&day=$3&p=$4&page=$5 [QSA] while it should be RewriteRule ^archives/([0-9]{
   4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9]+)?/?([0-9]+)?/?$ /haanbhai/index.php?
   year=$1&monthnum=$2&day=$3&p=$4&page=$5 [QSA] in summary /?([0-9]+)?([0-9]+)?/
   part at the end is wrong it should be /?([0-9]+)?/?([0-9]+)?/ Gave me a lot of
   heartburns. Regards Pankaj

Viewing 1 replies (of 1 total)

 *  [Kitten](https://wordpress.org/support/users/kitten/)
 * (@kitten)
 * [22 years ago](https://wordpress.org/support/topic/bug-permalink-rewrite-rule-wrong/#post-55817)
 * Now fixed in 1.2

Viewing 1 replies (of 1 total)

The topic ‘BUG: Permalink rewrite rule wrong’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Kitten](https://wordpress.org/support/users/kitten/)
 * Last activity: [22 years ago](https://wordpress.org/support/topic/bug-permalink-rewrite-rule-wrong/#post-55817)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
