Ticket #1322 (closed defect (bug): wontfix)

Opened 7 years ago

Last modified 5 years ago

Paged navigation & htaccess generation fails with "exotic" permalinks

Reported by: Joen Owned by: anonymous
Priority: normal Milestone:
Component: Administration Version:
Severity: minor Keywords:
Cc:

Description

I'm using the following permalink structure:

/journal/%year%/%monthnum%/%postname%

In /, I show excerpts, in /journal/ I have WP installed, and show the main blog stuff. My "Blog Address" is /.

When I use the "Next" / "Previous" Posts feature in /journal/, the resulting /journal/page/2/ shows a 404.

This is due to the htaccess expecting paged navigation only on the blog address, with the following rule.

RewriteRule page/?([0-9]{1,})/?$ /index.php?&paged=$1 [QSA,L]

A quick, manual edit fixes it:

RewriteRule journal/page/?([0-9]{1,})/?$ /journal/index.php?&paged=$1 [QSA,L]

I've had not had major problems with other aspects of rewriting, with these "exotic" URIs, so I have to ask: Is the above intentional? Or is it simply impossible to use paged navigation with different blog / WP URIs?

Proposed solution: If possible, allow Paged navigation in both blog URI and wp URI, "just to be sure".

In other words, just write both RewriteRule page/?([0-9]{1,})/?$ /index.php?&paged=$1 [QSA,L] and RewriteRule journal/page/?([0-9]{1,})/?$ /journal/index.php?&paged=$1 [QSA,L] with auto generation.

Change History

comment:1   Joen7 years ago

  • Patch set to No

comment:2   Joen7 years ago

Made a mistake when reporting this: obviously this is a general error, not an Adminstration area. Also, I should have prioritized this higher -- it required quite a bit of shotgun debugging on my part to discover.

Is this still valid with the new rewrite system?

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

when you move WordPress into a subdirectory, you should stop accessing the subdirectory's index.php for blog-viewing purposes. This may work to some extent, but it's not intended.

Note: See TracTickets for help on using tickets.