All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Search result pages showing up in search results

grege 11 Mar 2014 01:43 problem, rejected

I am getting search result pages showing up in search results. E.g. a search for "search-term" returns matches with the following: http://website.com/search/results?col...

How do I stop search results from being indexed and showing up in subsequent search results?

Replies

  1. Low 11 Mar 2014 06:33

    You're saying Low Search returns pages of search results in its result set? Or is Google indexing LS result pages?

    The former is most unlikely because LS will always return Entries, not "pages". If you're linking to certain search result pages, then they could be picked up by Google. Adding a rule in your robots.txt might help there.

    grege 11 Mar 2014 08:53

    Correct with the former - I know, it's a weird one. Try the search: caanz.co.nz - search for "sandy", and look at the first search result.

    Low 11 Mar 2014 08:56

    Looks more like an empty href on the link there. Paste your Results tag code here? You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.

    grege 11 Mar 2014 09:00

    Thanks. Pasted results tag here - http://pastie.org/8906540

  2. Low 11 Mar 2014 09:02

    Well, looking at your Results tag, it seems {page_url} is empty for that entry. You might want to either put it in a conditional or make sure the entries from that particular channel have a {page_url} assigned.

  3. grege 11 Mar 2014 09:11

    Ok. Got it. Thanks. Those pages aren't using structure, so I just need to use standard EE tags rather than {page_url}. Cheers.