Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hello, with subdomains we don't need noindex and nofollow
just add to noindex_external_links.module line 203
// subdomain links
$internalurl = "domain.com";
if (strpos($url['host'], $internalurl) > 0) return $match[0];
resulting code
/**
* Do the magic with links
*
* @param string $input
* @return boolean
*/
function noindex_external_links_replace($match) {
global $_noindex_external_links_allowed_domains;
global $_noindex_external_links_denied_domains;
global $_noindex_external_links_method;
$url = parse_url($match[2]);
if ($url['host'] == $_SERVER['HTTP_HOST']) return $match[0]; //Inner Link
// subdomain links
$internalurl = "domain.com";
if (strpos($url['host'], $internalurl) > 0) return $match[0];
..................
if intrested in this feature we can add special field in module ui for input domains, wich will be like subdomains
Comments
Comment #1
SimonLitt CreditAttribution: SimonLitt commentedComment #2
SimonLitt CreditAttribution: SimonLitt commented