Page is a not externally linkable
g1smd - 9:59 pm on Nov 21, 2012 (gmt 0)
[edited by: g1smd at 10:23 pm (utc) on Nov 21, 2012]
Post at least the redirect and the ErrorDocument code here, using example.com for the hostname.
The problem is that any request that is internally rewritten will be fulfilled by the index.php file. It is up to the PHP script to return valid content if it exists in the database for the requested URL -OR- return the correct HTTP status code and error message if there is no content to deliver.
Apache can send it's own 404 response only when it fails to find a file on the hard drive to handle the request. In this case it always finds a file: index.php and so Apache's work is done and there's no error in its part of the operation.