Make WordPress Core

Opened 8 years ago

Last modified 6 years ago

#34776 new enhancement

Introduced the `$site_root` and `$home_root` parameter in `mod_rewrite_rules`

Reported by: sebastianpisula's profile sebastian.pisula Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Rewrite Rules Keywords: has-patch
Focuses: Cc:


if I want make custom rewrite rule I must use in filter this script:

$home_root = parse_url(home_url());
                if ( isset( $home_root['path'] ) )
                        $home_root = trailingslashit($home_root['path']);
                        $home_root = '/';

So I think that this is good idea with new params in filter

Attachments (3)

34776.patch (967 bytes) - added by sebastian.pisula 8 years ago.
34776.2.patch (902 bytes) - added by sebastian.pisula 8 years ago.
$home_root i more important
34776.3.patch (925 bytes) - added by sebastian.pisula 6 years ago.
Refreshed patch

Download all attachments as: .zip

Change History (5)

8 years ago

$home_root i more important

6 years ago

Refreshed patch

#1 @sebastian.pisula
6 years ago

  • Keywords has-patch added

This ticket was mentioned in Slack in #core by sebastian.pisula. View the logs.

6 years ago

Note: See TracTickets for help on using tickets.