What is the best way to treat URLs ending in /?s=
-
-
Hi Alex
These are parameters that sit after the main URL and often include 'sort' 'page'. (They can also be created in some eCommerce pages as 'products' but these should be dealt with a mod-rewrite to show properly constructed URLs with category name and title). There are a number of ways with dealing with them:
1. Google search console - you have to be very careful messing with the rules in parameter handling but for some, this is the way.
- 'sort' then you can tell Google that it narrows the content on the page - you can then choose to let Googlebot decide or block the URLs - I often block them as they just create skinny and duplicate content.
- Pagination - 'page' you can tell Google that this paginates and then let Google decide. Look at rel/prev tag on those pages as well.
- Attributes - like size and colour - I generally block those as they just create skinny duplicates of main categories
- Others - like Catalog - it depends on what platform you use but there could be other parameters being created - I block most of them as they create useless URLs
2. Robots.txt
You can use this file to block the indexing of these pages depending on the parameter by excluding them from being followed by the search bots. Once again be very careful as you don't want to accidentally block indexing of useful areas the site.
https://moz.com/learn/seo/robotstxt
3. Canonicals
If you are able a great way of dealing with attributes like size and colour is to canonicalize back to the non size specific URL - this is a great way of maintaining the link juice for those URLs which may otherwise be lost if you blocked them all together. You add a rel=canonical tag pointing to the non-parameter version.
https://moz.com/learn/seo/canonicalization
4. As a last resort you can 301 redirect them but frankly, if you have dealt with them properly you shouldn't have to. It's also bad practice to have live 301 redirects in the internal structure of a website. Best to use the correct URL.
There is more reading here:
https://moz.com/community/q/which-is-the-best-way-to-handle-query-parameters
https://moz.com/community/q/do-parameters-in-a-url-make-a-difference-from-an-seo-point-of-view
https://moz.com/community/q/how-do-i-deindex-url-parametersRegards
Nigel
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
-
Best Way To Write H1 to Get Max CTR?
Can anyone please share some guidelines regarding how to write the H1 subject of the post which can generate the maximum CTR.?. I noticed even when i able to rank on the featured snippet with good enough search volume the CTR is too low. Anyone share some expert advice please?
Moz Pro | | ndhsne450 -
Difference between urls and referring urls?
Sorry, nit new to this side of SEO We recently discovered we have over 200 critical crawler issues on our site (mainly 4xx) We exported the CSV and it shows both a URL link and a referring URL. Both lead to a 'page not found' so I have two questions? What is the difference between a URL and a referring URL? What is the best practice/how do we fix this issue? Is it one for our web developer? Appreciate the help.
Moz Pro | | ayrutd1 -
How to fix overly dynamic URLs for Volusion site?
We're currently getting over 5439 pages with an 'overly dynamic URL' warning in our Moz scan. The site is run on Volusion. Is there a way to fix this seeming Volusion error?
Moz Pro | | Brandon_Clay0 -
Ways to Find Potential Backlink Providers
We are doing a backlink campaign for a personal development training company that is a pretty good authority with lots of good long articles. So far I found competitors ranking for our keywords - about 10 of them - and analyzed their backlinks We found about 40 possible backlink providers. What's the next step to find more? I know 2 possibilities so far: do inurl commands in google to find related sites with resource sections - how do I do this? Analyze the backlinks of the sites that make up competitor's backlinks.] - how do I organize this huge task? What else is there?
Moz Pro | | BobGW0 -
How to recover from penguin hit for my site http://rndegrees.net
My site http://rndegrees.net hit by penguin and after that I worked on cloud tag and one duplicate page content which was present on my site, also I worked on back links though my site hasn't recovered yet. Please guide me if I missed on something to recover from penguin hit.
Moz Pro | | HQP0 -
About http://www.opensiteexplorer.org/
Hello There, I am not able to open http://www.opensiteexplorer.org/ on my computer and if i search using on proxy server it is working good... so what i can do for this to run in proper way on my end ? Thanks, Samir
Moz Pro | | samir19800 -
What is the best way to analyze all of the outgoing links from a website to determine which links are not beneficial?
I've recently been tasked with the SEO on an old site that was ranking somewhere on page two for desirable keyword phrases. The site was taken completely offline for a few months and started ranking on page one for the same desirable keyword phrases. The site has a lot of link partners and I think that some of the links from the site are going to undesirable pages and I'm looking for the best way to get rid of the links that are hurting the sites rankings.
Moz Pro | | kerrick-955310