Make WordPress Core

Opened 4 years ago

#50439 assigned defect (bug)

Post name permalinks htaccess directives do not consider subdirectory installation

Reported by: filatovdanyl's profile filatovdanyl Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.4.2
Component: Permalinks Keywords: needs-patch
Focuses: Cc:


Having wordpress installed in /wordpress/ subdirectory, and site address as root (following method I in guide), enabling post name permalinks gives 500 error on any page other than homepage or admin panel pages. This seems to be due to wordpress adding rewrite driectives to root .htaccess file, that seem to override the rewrite rules from method I. Changing permalinks to plain, making root .htaccess read-only (with no wp directives), or disabling them by putting an ifmodule with false condition around them fixes this.

I think that wordpress should consider subdirectory installation when writing htaccess directives.

Change History (0)

Note: See TracTickets for help on using tickets.