Forums

Peramlink structure of /index.php/%postname%/ (7 posts)

  1. dmclark
    Member
    Posted 7 years ago #

    Hi,
    I took the plunge nand decided to get acclimated with 1.3. I am having a problem where I cannot use the peralink structure /index.php/%postname%/.
    the .htaccess generated for this structure is:
    RewriteRule ^site/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^site/([^/]+)/page/?([0-9]{1,})/?$ /index.php?pagename=$1&paged=$2 [QSA,L]
    RewriteRule ^site/([^/]+)/?$ /index.php?pagename=$1 [QSA,L]
    is this a bug?

  2. James
    Happiness Engineer
    Posted 7 years ago #

    Or, try adding year, month, and day.

  3. dmclark
    Member
    Posted 7 years ago #

    It works with y/m/d but why is that necessary?

  4. DianeV
    Member
    Posted 7 years ago #

    I've also tried the same URL structure with 1.2; same issues -- broken URLs.
    From what I can tell, you'll need y/m/d/title (and the correct mod_rewrite in .htaccess) for all URLs to work.

  5. error
    Member
    Posted 7 years ago #

    Actually I know a site which did make two posts with the same title on the same day, and as a result, neither post could be accessed through the permalinks. So as long as you don't do that, you're fine!

  6. Ryan Boren
    WordPress Dev
    Posted 7 years ago #

    Permalink structures that are prefixed with index.php don't use htaccess. Regardles, 1.3 should handle /index.php/%postname%/ and /%postname%/. 1.3 also fixes the YMD breakage. It no longer requires y/m/d in the permalink structure.

  7. dmclark
    Member
    Posted 7 years ago #

    Ryan - that is what I though, but its not working. Should I file a bug, or is this a know inconsistency?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.