hi again
i added the robots meta tag in the 404 error page, i hope it will work ( google doesn’t seem to crawl my site very often ... )
by the way, i am trying the etomite fix ( see the 1st post of this thread ), the solution is to modify the index.php file around line 700, but mine only have 100 ones at most ...
if ($modx->documentIdentifier == (id of error page ;) I'm not a php-master, by hands )) {
$header = "HTTP/1.0 404 Not Found\n";
header($header);
}
if ($modx->documentIdentifier == (id of error page ;) I'm not a php-master, by hands )) { $header = "HTTP/1.0 404 Not Found\n"; header($header); }
if (($modx->documentIdentifier == $modx->config['error_page'])||($modx->Event=='OnPageNotFound')) {
$header = "HTTP/1.0 404 Not Found\n";
header($header);
}$header = (($this->documentIdentifier == $this->config['error_page']) && $redirect_error) ? "HTTP/1.0 404 Not Found\n".$header : $header;
$header = ($this->documentIdentifier == $this->config['error_page'] or $redirect_error) ? "HTTP/1.0 404 Not Found\n" : $header;
Hello, I have a solution without a hack (untill it is included in the next release):
create a new plugin,put [tt]header("HTTP/1.0 404 Not Found");[/tt] in the content and check the event [tt]OnPageNotFount[/tt]
That’s all.
Hello, I have a solution without a hack (untill it is included in the next release):
create a new plugin,put [tt]header("HTTP/1.0 404 Not Found");[/tt] in the content and check the event [tt]OnPageNotFount[/tt]