Hi, I have implemented the 404 redirect trick for my PHP programs so that all my pages are indexable. However, when I tried to point my browser to http://www.domain.com/hw/15, I saw the URL is changed to the designated URL in the .htaccess.
OK, first try and make it redirect to something in the same directory. Like ErrorDocument 404 test.php
If that doesn't work, you may need to edit your access.conf and set Allow Override to the appropriate setting (I forget, but I usually set Override all-- this lets .htaccess control all aspects of the directory).