tag : index-date : 2008 02 19 13:20:57
Ode takes requests pretty literally.
http://ode-is-simple.com/home/about_ode
Is a request for a post file with the name 'about_ode' (which does not exist) and not the category (directory) .../about/ode/ (which does).
Note the absence of the trailing forward slash. Though Ode is technically doing the right thing here, this is an easy mistake for a visitor to make.
Taking advantage of the new manipulate_request routine, this addin will
Notice that the request:
http://ode-is-simple.com/home/about_ode
doesn't match a post on the site.
Determine that there is a directory at:
http://ode-is-simple.com/home/about_ode/
Change the request so that it resolves to the directory with the same name.
Of course, this could work in the other direction as well. (Though that mistake is far less common.)
We can change the request sneakily without notifying the visitor of the change or we can do a proper redirect, which issues a new request on behalf of the visitor, updates the address in the browser's address bar, and issues an appropriate HTTP status code (301, 302, 303).
By the way, the name of this addin is very likely to change.