Forum Moderators: phranque
The domains are located on the server as:
/home/admin/domains/ADOMAIN.com/public_html/
/home/admin/domains/ANOTHERDOMAIN.com/public_html/
etc
Id like to redirect the 404 pages to /home/admin/domains/r.php. Is this possible? Is there any way to do just an 'internal' direct so a user accessing a 404 page would have no indication that the 404 page is going through r.php?
Basically r.php will log the URL and redirect the user accordingly to another URL (lets say www.google.com). How can I make it so if someone accesses www.mydomain.com/a404page.html, they get redirected to www.google.com (via r.php) but have no indication on their end (even through packet sniffing) that they first went to r.php, and THEN to www.google.com (an internal redirect)?
Thanks :)
PS: I know I have to edit httpd.conf, but I dont know how to do the internal redirect part.
An alternative is to use symbolic links, so that each account appears to have a 404 ErrorDocument file, but these files are actually just symbolic links pointed to a common file -- your error-handling script.
Jim