bzcomputers
Customer
for me:
/home/xxxx/public_html/error/404.php
/home/xxxx/public_html/error/404.php
ErrorDocument 404 /search.php
Invalid Forum specified. If you followed a valid link, please notify the administrator
http://www.unix.com/blah_blah_blah.php
Invalid Forum specified. If you followed a valid link, please notify the administrator
GoogleBot Thread Index Count: 3115 - 2% of sitemap - Last 7 Days: 2% - Last 24 Hours: 2% - Last Hour: 2% (3116)
I'm not sure how that's relevant to generating 404 errors with PHP? Have you tried to trigger your ErrorDocument directive in PHP before?Well, first of all, our ErrorDocument directive has been working way over a year, so I know it works fine.
I am 1000% sure our ErrorDocument directive worked, regardless of what someone else posted on the net somewhere.
Can you try creating a 404.php with the following content:As far as DBSEO, nothing works.. you can see it is configured as you mention and it does not work.
<?php
header('HTTP/1.1 404 Not Found');
header('Status: 404 Not Found');
include('/var/www/search.php');
?>
root@www:/var/www# cat test.php
<?php
header('HTTP/1.1 404 Not Found');
header('Status: 404 Not Found');
include('/var/www/search.php');
?>
select * from style where styleid = or styleid = 38 ORDER BY styleid ASC;
public static function handle404($uri = '', $force404 = false)
$_DEBUG = TRUE;
if($_DEBUG OR 1==1)
{
$log = '/website/logs/apache2/dbseo_404_debug.log';
error_log(date(DATE_RFC822).' Force 404: '.$force404.' URI: '.$_SERVER['SCRIPT_URI'].' DBSEO_URI: '.$uri."\n\n", 3, $log);
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.