WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] permalink without /index.php/archive (5 posts)

  1. ik80
    Member
    Posted 6 years ago #

    The only working permalink structure i can get on this blog is:
    /index.php/archive/%postname%/

    When I change the structure to, for example: /%year%/%monthnum%/%day%/%postname%/, WP indicates that the .htaccess is updated but the links don't work.

    any idea?

  2. Adam Brown
    Member
    Posted 6 years ago #

    Start here: Using Permalinks

    Note the difference between "pretty permalinks" and "almost pretty", and the difference in system requirements.

  3. ik80
    Member
    Posted 6 years ago #

    Thanks Adam, i read everything there but my problem still persists.

    Independent on my permalink choice, WordPress always suggests the same htaccess configuration:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    
    # END WordPress

    Didn't this need to change to something like:
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]

    I'm running 2.3.1 on apache...

  4. ik80
    Member
    Posted 6 years ago #

    i'm marking this topic as solved (Adam's answer is correct for the title of this message). i'll create a new topic with this other problem...

  5. navegante
    Member
    Posted 6 years ago #

    Have the same trouble. Been using WP for 3 years and is the first upgrade that make
    /%year%/%monthnum%/%day%/%postname%/
    in to
    index.php//%year%/%monthnum%/%day%/%postname%/

Topic Closed

This topic has been closed to new replies.

About this Topic