WordPress.org

Ready to get started?Download WordPress

Forums

Pretty Permalinks issue with 2.3 (7 posts)

  1. deanhatescoffee
    Member
    Posted 6 years ago #

    I just upgraded nwdsa.org from 2.0 to 2.3. The permalink structure in 2.0 was set to Custom, /news/%year%/%monthnum%/%day%/%postname%/. The best I can do with 2.3 is "almost pretty" - /index.php/news/%year%/%monthnum%/%day%/%postname%/. If I don't have /index.php in the path then the only other permalink structure that works is the default (?p=1). Any other permalink structure will only display the homepage, even though the URL in the address bar is changing. There's probably an easy fix, but I can't figure it out.

    Here's my .htaccess:

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

    I'm not sure why it was written that way, but I've tried the more traditional

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    as well, to no avail. I'm not too familiar with PHP or .htaccess, so if there's something else I should try then I'm welcome to ideas.

  2. deanhatescoffee
    Member
    Posted 6 years ago #

    Givin' this a bump before I sign off for the day...

  3. deanhatescoffee
    Member
    Posted 6 years ago #

    Any ideas?

  4. deanhatescoffee
    Member
    Posted 6 years ago #

    Can anyone help me with this?

  5. roganty
    Member
    Posted 6 years ago #

    Have a look at this post

  6. deanhatescoffee
    Member
    Posted 6 years ago #

    Thanks roganty. I checked out that post and did as it advised, but that didn't fix the issue. Any other ideas?

  7. nocitizen
    Member
    Posted 6 years ago #

    Hey deanhatescoffee, I want to thank you for posting your .htaccess code, the "more traditional" .htaccess code actually worked for me (using WordPress 2.3.1). Good luck finding a solution that works for you!

Topic Closed

This topic has been closed to new replies.

About this Topic