Previous page | Building & Styling Applications & Sites | Next page |
Using DirectURL to provide memorable shortcuts |
The system uses an automatically generated numerical addressing schema to assign page URLs. The reasons and benefits of this are described in 'The numerical addressing schema'. There is also a need to be able to assign specific 'user-defined' URLs to pages. DirectURLs give you this ability.
Why use DirectURLs?
How DirectURLs work When a user attempts to browse to a DirectURL, there is no matching page to handle the request, so the request falls through to the web server's '404' handler. Normally this would simply respond with the standard '404 page not found' screen, however before resorting to that it first checks to see if there is a matching DirectURL. If there is, it redirects to the relevant page. Types of DirectURL There are two types of DirectURL, distinguished by where the DirectURL is entered:
Creating a Custom 404 page - overriding the standard '404' page You can create your own page to be displayed when there is no matching page to show, by adding a Page-based DirectURL of * (ie a single asterisk) to the page you want to appear. This could typically be a 'prettier' page-not-found page, or take the user to a search page, or perhaps to the home page of the site.
|