![]() |
How can you redirect ALL 404 pages on a server to a single php file?
That means on all domains and all subdomains?
Everything redirected to a single php script.. |
Can't apache pickup all 404 error codes and forward it to your php script page?
WG |
httpd.conf
|
Quote:
|
also.. can you pass the requested URL to the php script?
|
you add the htaccess file in the vhosts directory
|
add this to a .htacess file and place it as high as possible in the dir structure
ErrorDocument 404 http://domain.com/yourscript.php |
Quote:
ErrorDocument 404 /yourscript.php and put the script in the main dir |
or try
RedirectMatch 301 (.*)\.shtml$ http://domain.com/404.php RedirectMatch 301 (.*)\.html$ http://domain.com/404.php RedirectMatch 301 (.*)\.htm$ http://domain.com/404.php RedirectMatch 301 (.*)\.php$ http://domain.com/404.php |
pretty sure you can just edit it in cpanel or httaccess
|
Man such alot of clueless people in this thread..
|
Quote:
|
All times are GMT -7. The time now is 07:13 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123