How can I avoid duplicate pages on my website?

Started by Suneel, November 03, 2017, 12:55:34 PM

Previous topic - Next topic

Suneel

Hello. I ask you not to kick, if you cannot strongly articulate the question.

I want to implement a small project. Service search for auto-masters. The search will be carried out in two directions: the type of work and location (auto mechanic, service). Content - this is the so-called master cards, that is, their data (location, specialization, contacts, working hours, prices, etc.). We admit a direct link of a kind - site.com/master_page.html

At a choice of search on cities, we admit we choose city name. The page site / city_name.html is displayed with all the masters of city (if there are many of them with pagination). The first in the list is the master city, click and go to the page - site.com/city_name/master_city.html, where there will be information about the city. Same as site.com/master_city.html

When searching by type of work, we choose an auto electrician. The page site / electrician.html is displayed with all the masters of electricians (if there are many of them - with pagination). Again, we select area in the list and go to site.com/electrician/master_city.html as well as information about area, as well as on site.com/master_city.html and site.com/city_name/master_city.html.

It turns out for the PS this will duplicate the pages.

At the moment I see 2 options:

1. Masters cards should be opened for indexing, and search results should be closed from indexing.

2. The link of the master's card (site.com/master_city.html) remained the same, and when issuing from the search through the cities the link was of the form site.com/master_city.html#city_name, similarly from the search for works - site.com/master_city.html #electrician.
Generate in the <head> <link rel = "canonical" href = "site.com/master_city.html"> </ head> tag on all three pages, including the main page - site.com/master_city.html.

Tell me please, which of the two options is best suited in this case?

How correctly to implement?
Perhaps are there any other solutions?

Thanks in advance.

Kapil

If the card can be located in several categories at the same time, it is better not to bind the card to the category in the URL.
Those. the only URL of the site.com/master_city.html is best, in my opinion.

In the card, among other things, output all the categories in which the wizard is presented.

Only there can be a problem with bread crumbs.

Suppose, "bread crumbs" for default you will have the form of "Master/City" or on the basis of one of the categories (some main for this master). Like the

"Masters/Electricians/City".

But the user will then expect to see in the bread crumbs his real path.

What about City and the plumber and the electrician? Then, if the user came from the "Plumbers" section, he would expect "Master/Plumbers/City".

In order to foresee this, one can write to the id session of the category from which they entered the card and build individual bread crumbs on its basis ... If, of course, you plan to do them.

But this is not relevant for the city. I would not steamed. The locations are just one of the filters, like the gender, for example, or the tag. You do not need to build "Masters/City/Area". You can, of course, but I do not see the point. We put everything on the card.

Suneel

Quote from: Kapil on November 03, 2017, 02:02:19 PM
the only URL of the site.com/master_city.html is best, in my opinion.

I Agree

Quote from: Kapil on November 03, 2017, 02:02:19 PM
In the card, among other things, output all the categories in which the wizard is presented.

And Planned

Quote from: Kapil on November 03, 2017, 02:02:19 PM
Only there can be a problem with bread crumbs.

Thank you, I have not thought about bread crumbs yet. There is something to ponder.

DipakS

Thank you  :D, Kapil and Suneel for sharing this information, really useful. You very nicely explain each point.

Rajesh

Suneel, it is quite natural to make the addresses of the final pages of the format /city or /masters/City. As for the lists (filters), then everything is simple:
/ City - all the masters in City;
/ City / electric - electricians in city.
Electricians and others throughout the country cannot be done at all, but if Pts. You want:
/all/electric, /india/electric (you close the intermediate node with a redirect to the main page if the general list is displayed on the main page) or the most natural, but not always the easiest /electric.

If you want the masters of the immense not to compete very much for beautiful slugs, you can use /masters-from-city/city, /masters/area/city or even wedge into the filter (/ City / area) for the end pages.

Roshan

Quote from: Suneel on November 03, 2017, 12:55:34 PM
HTML

get rid of this rudement.

Quote from: Suneel on November 03, 2017, 12:55:34 PM
Tell me please, which of the two options is best suited in this case?

No one. The card must be available one by one.
The canonical is a crutch in this case.

Karaan

Quote from: Roshan on November 17, 2017, 10:52:01 AM
get rid of this rudement.

It is better to leave as it is, there are a lot of problems that can be solved much easily with an extension.

Quote from: Roshan on November 17, 2017, 10:52:01 AM
No one. The card must be available one by one.
The canonical is a crutch in this case.

There are no such problems, bread crumbs can be in several levels, and using js show the user's first expected path.

Roshan

Quote from: Karaan on November 17, 2017, 10:57:42 AM
there are a lot of problems that can be solved much easily with an extension.

For example?

Ida "extension" is the concept of the file system. There is no such concept in the addressing of documents.

Karaan

Quote from: Roshan on November 17, 2017, 11:01:10 AM
For example?


Definition of the end of the name of the document is very often used to enable / disable indexing in the robot, especially relevant in the case of
Disallow:
Allow:

+ directives in various js handlers it is very convenient to have such a label as a dot

Roshan

Quote from: Karaan on November 17, 2017, 11:04:10 AM
definition of the end of the name of the document is very often used to enable / disable indexing in the robot, especially relevant in the case of directives

This is an artificially created "problem" It is enough to make the correct CNC.

Quote from: Karaan on November 17, 2017, 11:04:10 AM
+ in various js handlers it is very convenient to have such a label as a dot

This is generally some kind of hardness.

Karaan

Quote from: Roshan on November 17, 2017, 11:07:53 AM
This is an artificially created "problem"

Yes, the client and change no opportunity

Quote from: Roshan on November 17, 2017, 11:07:53 AM
It is enough to do the CNC correctly.

I would say correctly make the entire architecture of the site and the software part, but I never saw such a site

Quote from: Roshan on November 17, 2017, 11:07:53 AM
This is generally some kind of hardness.

When you have to solve a bunch of narrow specific tasks yet and not for such a cling

Roshan

Quote from: Karaan on November 17, 2017, 11:11:37 AM
yes, the client and change no opportunity

So the topic is not about how to fix the already created jambs, but how to prevent them. Extra 5 characters in the address - it's superfluous.

Suneel

Thanks for the tips and recommendations. The situation has been cleared up.