ErrorDocument 404 /example.php
DirectoryIndex /example.php
this way i can create a psuedo URL e.g. http://www.domain.com/cat/subcat (where cat and subcat aren't real directories) in my other scripts, and it gets redirected to example.php which can then examine $REQUEST_URI to extract cat and subcat and setup the page accordingly. This method has worked fine on most servers.
The problem i've had with a couple of servers is the www. part of the URL is disappearing after the redirect. If anyone know's what might be causing this and how to prevent it happening, please let me know.
cheers,
Rich.