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.

Here's what I have inside .htaccess:

ErrorDocument 404 http://www.domain.com/hw/index.php

I thought this trick is supposed to make the browser stays in the same URL, not something like this.

Could anyone help me on this?