Should I block google indexing "search.php"
-
My question is I have a search page on our website , you can search by date, number of people staying and so on, I am just wondering should block this in the robots.txt ? Because we have pretty URL'S already for searching by county and searching by towns. I cannot see any benefit of having e.g
"search/search.php?sp_dateFrom=16%2F12%2F2015&sp_dateTo=23%2F12%2F2015&sec_drop%5B%5D=727&spesh_town_id=764&q=&occupants=5&bedrooms=3&submit=SEARCH#search" indexed. Would I be correct in doing this ?
-
Second confirmation ;-), he's right. It's one of the things that for bigger sites really could get you in trouble.
-
That is the answer I was looking for, I was thinking along those lines. The problem was that Seo software was coming up with duplicate content because of different variations of the search parameters. Thanks very much for a clear and precise answer and taking time to explain this.
-
You want to block Google from any URL that produces a search result that is essentially a resorting or refiltering of a master list of search results that they have already crawled/indexed.
If you already have a set of pages that lets Google crawl all the pages in your site (could be all the products in your store, all the articles in your blog, etc), having Google crawl through variants of that same page causes a couple of problems. 1) You are wasting Google's time in spidering pages that it has already seen, vs having Google crawl your more important pages. Depending on how you have these setup, you may end up sending Google into an endless loop of non-important pages to crawl 2) You are creating pages that are generally low quality, have nothing truly original on them, they will not rank for anything anyway and may give the impression that your site consists of primarily low quality pages.
What I show Google is a single simple path to browse my content. For a blog this would be a chronological listing of articles that is paginated so that Google and the user can browse from my most recent to my oldest articles. For an ecommerce page, I might setup basic category pages, make sure the category pages have great content on them and then allow Google to crawl back through all the products based on those main category pages. If I have some products in 2 or 3 categories I do not sweat it. If on either of these examples, I show the user options to resort, filter, etc the results, I block Google with a nofollow or with robots.txt.
In your example, you already have "pretty" URLs by country and town, keep those, that will let Google and your users find your content and also provide context around that content. The crazy a$$ search URL you show is handy for your PHP code to give a search result, but would just waste Google's time. Unless you think it would be useful for a user to save the search URL results, I would see if there is a way to simply hide all the parameters from the user (submit the parameters using a POST vs a GET request for example) so that all they see in the URL result is /search/search.php
Good luck!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
When making content pages to a specific page; should you index it straight away in GSC or let Google crawl it naturally?
When making content pages to a specific page; should you index it straight away in GSC or let Google crawl it naturally?
On-Page Optimization | | Jacksons_Fencing0 -
Site IA considering a "Resources" section
I'm working on a resources section for our website and I'm wondering the best way to handle my sites information architecture. The resources section houses things like webinars (both upcoming and recorded), case studies, ebooks, etc. Should things like webinars and case studies be considered supporting content to our main topics? For example we have a product that manages Rebates. So we have a page on our site dedicated to "Rebates". Would a webinar or case study about our Rebates software be grouped with "Rebates" or would it be grouped by content/resource type? So for example a breadcrumb could look like this: Home > Rebates > Rebates Webinar or Home > Webinars > Rebates Webinar Thanks in advance!
On-Page Optimization | | Brando160 -
How to block index of link and content
Hi, We have pages where articles are shown and in the sides we have small snippets of Articles which shows the title and close to 25 words and a image. When i search for something in Google the snippet image and content is shown and in Google when clicked it redirects to a page which is not meant to be shown for the keyword the visitor is querying Is there a way i can block all the links and content shown in the right and left side of the page so Google does not get confused with the page content thats not related to that page? thanks
On-Page Optimization | | AlexisWithers0 -
Strange ranking occurrences in Google (NL)
Mozzers, I got a question for all of you. Recently (about 3 months ago) I launched a renewed website for a costumer of mine. Since then rankings have been improving and some decreasing a little but overall it went quite allright. _Still, we now have some issues with some new pages and I really don't know what to do any more. _ The Case:
On-Page Optimization | | JarnoNijzing
For starters lets say the company sells vacuum cleaners. We now make pages for specific product ranges e.g. Miele Diamond vacuum cleaners which in turn tells something about this product range and has links to different pages of that series, for instance the Miele Black Diamond Silent Vacuum Cleaner. Why did we do this? We already ranked for specific product pages but also wanted to rank for more general terms and thus product ranges. What happened? We now rank perfectly well for the product pages itself but for some reason the Miele Diamond Vacuum Cleaners page doesn't rank at all or not as it should. Why is this strange? Because we applied the exact same tactic for some other product ranges on the same website and it worked like a charm (part of the reason why we started to do this for all product-ranges). I could really use some help here. If you want I can message you the pagelink in PM but I won't post it here for several reasons. The Vacuum Cleaners in this example or not the real products though but used as an exemplar. I really do hope to hear from you with some advice or request for more information. Regards
Jarno0 -
What does Google consider a "Duplicate Title Tag?"
Do the title tags have to be exactly the same, or can they have some of the same keywords but different context? Hypothetical example: Home Page = Raising a Kitten, Tips & Tricks for a Healthy Cat Sub-Page = How to Cat-Proof your Home when Raising a Kitten Since both title tags has "raising a kitten," "cat" and "tips" would this be considered a "Duplicate Title Tag" even though the pages have completely different content in them? Thanks in advance!
On-Page Optimization | | Scratch_MM0 -
Blogposts and Google Rankings
I'm pretty new to all of this, my new website is starting to come along nicely in the SERPs, now appear on page 4 for my main key phrases were I didn't appear last week at all. I'm now on a mission to get myself ranked higher but my website is pretty much done... apart from the ongoing blogposts that I need to add, I'm a wedding photographer so every shoot is going on to it. My question, my blogposts aren't necessarily targeting my main key phrase, it might be mentioned once or twice but ultimately it'll most likely be the venue that steals the targeting. By adding the blogposts (I still have 36 to do) and using my keyphrase sparing, will this help to elevate me from page 4 in google? I know that I still need to build backlinks etc to but just something I can't seem to find an answer for on google hehe.
On-Page Optimization | | MartinWardPhoto0 -
Title Tags for Index Pages
What tactics do you use to change the title tags of your index page so they're not all the same? For example, if you have an index page that has 100 pages, each with the same title, what tactics do you use to give each page a unique title and how important is it?
On-Page Optimization | | felt0 -
Different Rankings In Google Mobile
Does Google mobile have different signals? For some reason I seem to rank better with certain pages on the mobile site?
On-Page Optimization | | TP_Marketing0