, , . / Drupal google . , ?
// robots.txt, Bryan $items ['taxonomy/term/%'], .
, GOTCHA, - Advanced Forums, RSS- . .
, Vocab , , RSS- $items ['//%'] .
:
URL Alter Module custom_url_rewrite_inbound(), :
if (preg_match("/^taxonomy\/term\/([0-9]+)(\/.*)?$/i", $path)) {
header("HTTP/1.0 404 Not Found");
die();
}
Drupal 404, :
require_once './includes/bootstrap.inc';
( "HTTP/1.0 404 Not Found" )
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
drupal_not_found();
Now my site has successfully completed the 404th request for taxonomy / term /%, and the RSS feeds are still working. Hope this helps someone else solve this problem.
source
share