Real URLs in Wordpress

All right WordPress gurus, I have a new spec to post for feedback, and I want it to be a “page” so that it’ll get the same pretty html templates as the rest of this site, but I also want it to live at a real URL (not /?page_id=12). How do I do this? Yes, I know about WordPress permalink options, but I don’t want to kill off all my old URLs. Ideally I wouldn’t have to fiddle around with .htaccess either.

10 Responses to “Real URLs in Wordpress”

  1. Andrew Grumet’s Weblog » Blog Archive » Says:

    [...] I have a question for all you WordPress gurus out there. [...]

  2. Steve Harris Says:

    I’m no WP guru but I know the two can coexist in the default WP install, since the friendly URL maps to the one with the page_id parameter, you can use both. You just turn the permalinks on.

    E.g. http://reinventedsoftware.com/blog/?page_id=4 is the same as
    http://reinventedsoftware.com/blog/about-me/ (don’t read it, boring). Same for posts, so http://reinventedsoftware.com/blog/?p=228 is the same as http://reinventedsoftware.com/blog/2006/07/16/feeder-on-neatlittlemacapps/ - it needs .htaccess to do this because of the rewrite rules, etc but you don’t have to edit that.

  3. Mark Says:

    I agree with Steve. Even if you turn on permalinks, your old URIs will still work without a hitch.

  4. Andrew Grumet Says:

    Okay, will give it a shot.

  5. Andrew Grumet Says:

    Argh, okay I see that I have some control over the “post slug”, but it doesn’t allow slashes, so all of my URLs have to live at the top level directory, which isn’t what I want.

  6. Andrew Grumet Says:

    Gonna post it anyway and fight with the tools later.

  7. Tomas Salfischberger Says:

    You can make a parent page, that allows for some directory like levels. You can’t read it, but take a look at this one: http://tomas.salfischberger.nl/p/setdesktop

    There you see a page as a child page of my projects page, the projects page has the slug ‘p’ because I had all projects in a directory called ‘p’ in my old design.

  8. aegrumet Says:

    PERFECT

  9. aegrumet Says:

    Worked pretty well. Only remaining issue is that WordPress insists on appending a final slash to the url, when I’d like it to simply end with “/authoring”.

  10. Dave Pentecost Says:

    Good question, good answers. This will be handy in a Wordpress (actually Lyceum - hope it works the same) project I’m launching. Should help a lot of other folks if they can find this!

    Thanks Andrew!

Leave a Reply

You must be logged in to post a comment.