Whird redirections
Mar 29, 2011 (about 1 year ago)
Tonight, I pushed up some changes to Whird to allow for adding redirection directives to individual pages and posts. This means it should now be possible to do things like:
- http://corenominal.org/get-firefox — external redirect to mozilla.com
- http://corenominal.org/woof-woof — internal redirect to Daisy’s page
The new feature works in combination with the $view_data_extras array and basically checks if a “redirect” key has been set, before performing some basic validation on the value and redirecting (unless the visitor is logged in as the site administrator, in which case a couple of options will be presented; follow redirection directive, or, edit the record.)
I do not think this new feature is at all groundbreaking, but it is quite useful — especially for those times when you need to do some reorganising of content. Also, I figure it beats having to play around with .htaccess directives, which can be a bit of a PITA.
Add your comment
Use the form below to add your comment. Markdown syntax is available. Note, all comments are moderated.