WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#4536 closed defect (bug) (fixed)

PATHINFO permalinks do not play well with custom tag/category prefixes

Reported by: markjaquith Owned by:
Milestone: 2.6 Priority: high
Severity: major Version: 2.3
Component: Administration Keywords: needs-patch
Focuses: Cc:

Description

PATHINFO permalinks (starting with /index.php/) don't play well with custom tag/category prefixes.

example:

Permalinks:
/index.php/%postname%/

Category Prefix:
/topic

Tag Prefix:
/taxonomy

Issues:

  1. "You should update your .htaccess now." message is flashed, but nothing is provided to copy/paste
  2. Tag and Category URLs do not work.
  3. Even if you figure out what should be in .htaccess, paging for categories and tags wil be broken

All of the above happen because we now have a mix of PATHINFO and mod_rewrite permalinks. Permalink structure should be the authoritative PATHINFO/mod_rewrite decider. If /index.php/ is at the start of the permalink structure, it should also be automatically (and maybe silently) added to the front of the category/tag prefixes.

This is an issue for 2.2.1 as well (although obviously only for categories).

Change History (5)

comment:1 Nazgul7 years ago

  • Keywords needs-patch added
  • Milestone changed from 2.3 (trunk) to 2.4 (future)

comment:2 lloydbudd6 years ago

  • Milestone changed from 2.5 to 2.6

comment:3 markjaquith6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [8213]) Silently add /index.php/ to category_base and tag_base for blogs using PATHINFO permalinks. fixes #4536

comment:4 markjaquith6 years ago

(In [8365]) Better solution for #4536. Slashless normalization of tag/category bases. fixes #7306 for trunk. see #4536

comment:5 markjaquith6 years ago

(In [8366]) Better solution for #4536. Slashless normalization of tag/category bases. fixes #7306 for 2.6.1. see #4536

Note: See TracTickets for help on using tickets.