Ticket #4536 (closed defect: fixed)

Opened 1 year ago

Last modified 6 days ago

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

Reported by: markjaquith Assigned to: anonymous
Priority: high Milestone: 2.6
Component: Administration Version: 2.3
Severity: major Keywords: needs-patch
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

07/21/07 16:24:58 changed by Nazgul

  • keywords set to needs-patch.
  • milestone changed from 2.3 (trunk) to 2.4 (future).

03/11/08 15:07:25 changed by lloydbudd

  • milestone changed from 2.5 to 2.6.

06/29/08 08:20:25 changed by markjaquith

  • status changed from new to closed.
  • resolution set to fixed.

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