Opened 9 years ago
Last modified 7 years ago
#34776 new enhancement
Introduced the `$site_root` and `$home_root` parameter in `mod_rewrite_rules`
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Rewrite Rules | Keywords: | has-patch |
Focuses: | Cc: |
Description
if I want make custom rewrite rule I must use in filter this script:
<?php $home_root = parse_url(home_url()); if ( isset( $home_root['path'] ) ) $home_root = trailingslashit($home_root['path']); else $home_root = '/';
So I think that this is good idea with new params in filter
Attachments (3)
Change History (5)
Note: See
TracTickets for help on using
tickets.
$home_root i more important