Title: Rewrite Rules
Author: Andrew Nacin
Published: January 29, 2014
Last modified: May 24, 2018

---

## Rewrite Rules component

#### This is a subcomponent of the 󠀁[Permalinks](https://make.wordpress.org/core/components/permalinks/)󠁿 component.

### Recent posts on the make/core blog

 * [Rewrites Next Generation: Next Meeting](https://make.wordpress.org/core/2016/05/16/rewrites-next-generation-next-meeting/)(
   May 16, 2016)
 * [Proposal: Next Generation Rewrites](https://make.wordpress.org/core/2016/05/03/proposal-next-generation-rewrites/)(
   May 3, 2016)

View all posts tagged [rewrite-rules](https://make.wordpress.org/core/tag/rewrite-rules/).

[Create a new ticket](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fcore.trac.wordpress.org%2Fnewticket%3Fcomponent%3DRewrite%2BRules)

### 95 open tickets in the Rewrite Rules component

| [95 open tickets](https://core.trac.wordpress.org/query?component=Rewrite+Rules&status=!closed) | [defect (bug)](https://core.trac.wordpress.org/query?component=Rewrite+Rules&type=defect+%28bug%29&group=milestone&status=!closed) | [enhancement](https://core.trac.wordpress.org/query?component=Rewrite+Rules&type=enhancement&group=milestone&status=!closed) | [feature request](https://core.trac.wordpress.org/query?component=Rewrite+Rules&type=feature+request&group=milestone&status=!closed) | [task (blessed)](https://core.trac.wordpress.org/query?component=Rewrite+Rules&type=task+%28blessed%29&group=milestone&status=!closed) | 
| [](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone&group=task+%28blessed%29&status=!closed) | [16](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone&type=defect+%28bug%29&status=!closed) | [10](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone&type=enhancement&status=!closed) | 0 | [1](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone&type=task+%28blessed%29&status=!closed) | 
| [Awaiting Review](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone=Awaiting+Review&group=task+%28blessed%29&status=!closed) | [42](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone=Awaiting+Review&type=defect+%28bug%29&status=!closed) | [10](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone=Awaiting+Review&type=enhancement&status=!closed) | [2](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone=Awaiting+Review&type=feature+request&status=!closed) | 0 | 
| [Future Release](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone=Future+Release&group=task+%28blessed%29&status=!closed) | [10](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone=Future+Release&type=defect+%28bug%29&status=!closed) | [2](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone=Future+Release&type=enhancement&status=!closed) | [1](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone=Future+Release&type=feature+request&status=!closed) | 0 | 
| [7.2](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone=7.2&group=task+%28blessed%29&status=!closed) | 0 | 0 | [1](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone=7.2&type=feature+request&status=!closed) | 0 |

 **95 open tickets.** Last 7 days: +0 tickets

### 25 tickets that have no replies

[View list on Trac](https://core.trac.wordpress.org/query?component=Rewrite+Rules&id=20520%2C30907%2C34385%2C38518%2C40395%2C41680%2C41891%2C41946%2C42120%2C42478%2C43678%2C45970%2C46000%2C46087%2C46283%2C49155%2C50726%2C50943%2C52419%2C52969%2C53545%2C54161%2C56592%2C58536%2C64037&status=!closed)

 * [#20520](https://core.trac.wordpress.org/ticket/20520)  Author Page Pagination
   Broken When Removing /author/ Slug
 * [#30907](https://core.trac.wordpress.org/ticket/30907)  Rewrite Rules collision
 * [#34385](https://core.trac.wordpress.org/ticket/34385)  Missing site_url path
   results in array to string conversion
 * [#38518](https://core.trac.wordpress.org/ticket/38518)  Rewrite Rules rebuilding
   on parse_request
 * [#40395](https://core.trac.wordpress.org/ticket/40395)  New action: pre_generate_rewrite_rules
 * [#41680](https://core.trac.wordpress.org/ticket/41680)  Added rewrite tags using
   add_rewrite_tag() not working on static front-page
 * [#41891](https://core.trac.wordpress.org/ticket/41891)  Bug when changing $(comments_)
   pagination_base of WP_Rewite instance to string with non-ASCII characters
 * [#41946](https://core.trac.wordpress.org/ticket/41946)  Option to delete_with_markers
 * [#42120](https://core.trac.wordpress.org/ticket/42120)  htpasswd protection not
   working due to .htaccess rewrite rules
 * [#42478](https://core.trac.wordpress.org/ticket/42478)  Add_permastruct ignores
   EP_NONE and other args if %post_id% is present in struct
 * [#43678](https://core.trac.wordpress.org/ticket/43678)  Add indents to default.
   htaccess rules
 * [#45970](https://core.trac.wordpress.org/ticket/45970)  in IIS if web.confing
   <configuration has xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"
   attribute the WordPress creates new <configuration> section and the site craches
   with wrong web.config administration
 * [#46000](https://core.trac.wordpress.org/ticket/46000)  non empty post object
   in case of error 404
 * [#46087](https://core.trac.wordpress.org/ticket/46087)  Short-circuit `page_on_front`
   check during site creation multisite
 * [#46283](https://core.trac.wordpress.org/ticket/46283)  Allow filtering post-
   type archive rewrites
 * [#49155](https://core.trac.wordpress.org/ticket/49155)  WP_HOME constant will
   force-redirect static front page but not posts on front page
 * [#50726](https://core.trac.wordpress.org/ticket/50726)  Pagination error on 4
   digit page when category and year are in the permalink structure
 * [#50943](https://core.trac.wordpress.org/ticket/50943)  add_rewrite_rule() sample
   codes don't work for passing multiple params
 * [#52419](https://core.trac.wordpress.org/ticket/52419)  Pagination adds trailing
   slash when it shouldn't
 * [#52969](https://core.trac.wordpress.org/ticket/52969)  Permalink for /wp-includes
   falls back to blog post
 * [#53545](https://core.trac.wordpress.org/ticket/53545)  Domain Mapping not working
   with page as homepage
 * [#54161](https://core.trac.wordpress.org/ticket/54161)  WordPress destroy iis
   web.config when using "location" config.
 * [#56592](https://core.trac.wordpress.org/ticket/56592)  Add filter to wp_redirect_admin_locations()
 * [#58536](https://core.trac.wordpress.org/ticket/58536)  url_to_postid does not
   work at MS install in context of another blog when $wp_rewrite->use_verbose_page_rules
   differs multisite
 * [#64037](https://core.trac.wordpress.org/ticket/64037)  New filters for managing
   rewrite rules

### 1 ticket slated for 7.2

[View list in Trac](https://core.trac.wordpress.org/query?component=Rewrite+Rules&milestone=7.2&status=!closed)

 * [#64498](https://core.trac.wordpress.org/ticket/64498)  Add core support for 
   random content redirects

### 95 open tickets

**Open enhancements: 22** [View list on Trac](https://core.trac.wordpress.org/query?component=Rewrite+Rules&type=enhancement&status=!closed)
**
Open tasks: 1** [View list on Trac](https://core.trac.wordpress.org/query?component=Rewrite+Rules&type=task+%28blessed%29&status=!closed)**
Open feature requests: 4** [View list on Trac](https://core.trac.wordpress.org/query?component=Rewrite+Rules&type=feature+request&status=!closed)**
Open defects: 68** [View list on Trac](https://core.trac.wordpress.org/query?component=Rewrite+Rules&type=defect+%28bug%29&status=!closed)

### Help maintain this component

Many contributors help maintain one or more components. These maintainers are vital
to keeping WordPress development running as smoothly as possible. They triage new
tickets, look after existing ones, spearhead or mentor tasks, pitch new ideas, curate
roadmaps, and provide feedback to other contributors. Longtime maintainers with 
a deep understanding of particular areas of Core are always seeking to mentor others
to impart their knowledge.

**Want to help? Start following this component!** [Adjust your notifications here](https://make.wordpress.org/core/notifications/?output_format=md).
Feel free to dig into any ticket.

Contributors following this component:

 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 