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.
July 21st, 2006 at 4:54 am
[...] I have a question for all you WordPress gurus out there. [...]
July 21st, 2006 at 10:17 am
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.
July 21st, 2006 at 2:16 pm
I agree with Steve. Even if you turn on permalinks, your old URIs will still work without a hitch.
July 21st, 2006 at 4:15 pm
Okay, will give it a shot.
July 21st, 2006 at 4:16 pm
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.
July 21st, 2006 at 4:23 pm
Gonna post it anyway and fight with the tools later.
July 21st, 2006 at 4:31 pm
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.
July 21st, 2006 at 4:33 pm
PERFECT
July 21st, 2006 at 6:43 pm
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”.
July 29th, 2006 at 6:04 pm
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!