• Thanks for the great plugin… since the last update it’s been indexing all the pages of a pods-powered site I built recently, and the search is working. My only problem is with getting the noindex exclusion to work.

    I want to exclude the links in a site-wide drop down menu from the index. If possible I actually need to exclude the entire menu including the link text, if that’s possible. Otherwise the keywords from the site-wide menu will cause most searches for important keywords, such as mcitp, to return every page of the site.

    This is from the FAQ:
    Exclude content within section(s) of your site by adding the class noindex to the element tag(s)

    Based on those instructions I first added noindex to the existing classes of the li tags that surrounded the links (<li class="menu noindex">). The menu was still spidered, so I tried adding the class noindex to the link tags (<a class="noindex" href="...). Since that didn’t work either I looked at the code in classes/Simple.HTML.DOM.Parser.php. Based on line 67, I tried adding rel="noindex" to the a tags. That didn’t work, so I added rel="searchengine_noindex" to the a tags, based on the code in classes/Spider.class.php, lines 745 and 782.

    Nothing I’ve tried so far appears to have had any effect on the spidering. If you want to see the source code, the site is at the link below:

    http://internetworkingdynamics.com

    (There’s currently no search form but I’ll eventually add one.)

    Thanks,
    Alan

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Search Engine] noindex exclusion not working’ is closed to new replies.