Forums

1.5 PAGE permalinks problem (10 posts)

  1. adagiomarine
    Member
    Posted 4 years ago #

    Dang - I should be able to figure this out, but after about 4 hours struggle I'm gonna ask for help!

    Post Permalinks work fine (FYI, I'm using "/archives/%year%%monthnum%%day%/%postname%/")

    My problem is linking to WP1.5 PAGES ("static" pages). E.g., as I read the Codex on "Pages" my Archives page (ID=41) should be linked as:

    http://seekerblog.com/archives/. Oddly, that URI appears to link to the site root. Others such as /about/ result in 404.

    Link by pageID works fine (http://seekerblog.com/?page_id=41)

    I just deleted/recreated the Archives Page: name = Archives, template = Archives, that's it.

    http://seekerblog.com/archives/20050207/chris-landsea-leaves-ipcc/

    What stupid thing am I doing?

    PS: I recently upgraded from 1.2.2 to 1.5-0206, so this is first time I've used Pages.

    Many thanx, Steve

  2. ceo
    Member
    Posted 4 years ago #

    Is your htaccess writable? If not, you need to update it manually everytime you create a page because the permalinks change.

  3. mdawaffe
    Member
    Posted 4 years ago #

    The /archives/ problem is likely caused by your permalink structure. Get rid of the initial /archives/ from your permalink structure or call your page something else (you might have to manually edit the page slug).

  4. macmanx
    Member
    Posted 4 years ago #

    You need a slash between %year% %monthnum% and %day%. You don't have to get rid of /archives/, in fact, you probably shouldn't. What you want is:
    /archives/%year%/%monthnum%/%day%/%postname%/

    See this: http://codex.wordpress.org/Using_Permalinks

  5. carthik
    Member
    Posted 4 years ago #

  6. amiya
    Member
    Posted 4 years ago #

    I had the exact same problem with the exact same nightly. Thanks, 2fargon!

  7. adagiomarine
    Member
    Posted 4 years ago #

    Is .htaccess writeable? I certainly thought so, permissions are -rwxrwxr-x.

    >everytime you create a page because the permalinks change

    Wow, that's a revelation. I missed that completely in the codex.

    Thanks steve.

  8. macmanx
    Member
    Posted 4 years ago #

    The permissions for .htaccess should be CHMOD 644.

  9. adagiomarine
    Member
    Posted 4 years ago #

    Thanks heaps 2fargon - that rewrite approach is brilliant (and fixed my problem to boot).

    macmanx - I don't think there is a problem with encoding yyyymmdd with no slashes. It's a few bytes shorter, and works fine.

    mdawaffe - I don't think /archives/ is a problem - at least using the rewrite approach 2fargon suggested. Now the link http://seekerblog.com/archives/ resolves to the "archives" Page.

  10. mdawaffe
    Member
    Posted 4 years ago #

    macmanx, thanks for the correction
    adagiomarine, thanks for the confirmation of the correction

    Good to know :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.