Support » Fixing WordPress » Trouble with page-name equalling permalink-base

  • I have a permalink structure on my under-development blog which looks like this:


    The idea behind it is ofcourse that you can remove the different parts one by one, and moving “upwards” in the hierarchy levels like this:
    Post => Day => Month => year => Archive (which is an overview of the entire archive)

    My way of solving this is by having that permalink-structure, and having a page called archive, so its adress is

    The whole thing works fine down to when i only pass on a year-parameter in the adress, for instance This only leads me to the /archive/-page, and not the actual 2006-archives as it should.

    Is there some way of making this work as I want, making /archive/2006/ lead to archive.php instead of my custom page-template?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Change the title/slug of the Page.

    I know i can change the title of the page, but then the whole point by having that IRI-structure would go away :-\

    Not entirely true.
    The permalinks structure you just described, when displayed is using the archive.php template file (regardless of what the first word is there, “archive” or “moshu” 😉
    – while the Page template is archives.php and serves a totally different goal.

    So what you said about the “structure going away”… doesn’t really make sense.

    The point is that i want the permalink-base-name to be “archive”, and i want the main-archive-page to have the same name, so you can just remove part by part in the IRI to end up in the archive, as a hierarchy.

    I know archives.php and archive.php serves two different roles, but as of my link-structure it makes sense to arrive at archives.php when you remove everything but /archive/. Then add a year, a month, a day to get archives for that exact date, and it uses archive.php.

    So i want
    /archive/ to point to archives.php, as it does.

    And i want
    To point to archive.php, but only the two first does. I want /archive/yyyy/ to point to archive.php too, but cant seem to get that working 🙁

    Prolly need to toy with .htaccess a bit, i just dont know what to do with it. If someone could help me out on this one that’d be lovely 🙂

    No-one has a good answer to this issue? Sorry for bumping the post, but I really need this to work 😉

    The page is close to finished now, but i just cant get

    /archive/yyyy/ to point to the actual yearly archives :\

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Trouble with page-name equalling permalink-base’ is closed to new replies.