WordPress URL Shortcuts
I learned something today that might be beneficial to anyone who runs, or visits, websites running the very popular WordPress software package: it creates shortcuts. You see, I was attempting to type the url for my super secret stats page: http://www.justincox.com/mint/ but instead accidently typed in http://www.justincox.com/min. Instead of getting the 404 error, I was redirected to http://www.justincox.com/2008/mint-worry-free-money-management/. Curious, I attempted a few more ’shortcuts.’
/gen took me to /2008/generation-kill/
/aug took me to /2008/august-blog-o-rama/
/fresh took me to /2003/freshmen/
It looks like this only works with the actual post slugs and not the post title. For example, the Freshmen article originally had a slug of /forums-flashback/. Typing in /fresh returned a 404 error. When I typed in /forums it worked. After changing the slug to freshmen the /fresh shortcut found the article in question.
I’ve also tested this on Two Slashes and it works there too. We’re both running WordPress 2.6.1 so I don’t know if it goes further back, but I have only noticed this since upgrading a few days back.
Find any other cool ’shortcuts’ around here? Try out some word combinations in the URL bar and let me know what you come across in the comments below.