MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How can I avoid duplicate pages on my website?  (Read 28519 times)

0 Members and 1 Guest are viewing this topic.

Offline Suneel

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
How can I avoid duplicate pages on my website?
« on: November 03, 2017, 12:55:34 PM »
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.

MilesWeb Hosting Forum

How can I avoid duplicate pages on my website?
« on: November 03, 2017, 12:55:34 PM »

Offline Kapil

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #1 on: November 03, 2017, 02:02:19 PM »
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.

Offline Suneel

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #2 on: November 03, 2017, 03:12:11 PM »
the only URL of the site.com/master_city.html is best, in my opinion.

I Agree

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

And Planned

Only there can be a problem with bread crumbs.

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

Offline DipakS

  • Full Member
  • ***
  • Posts: 113
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #3 on: November 06, 2017, 02:16:44 PM »
Thank you  :D, Kapil and Suneel for sharing this information, really useful. You very nicely explain each point.

Offline Rajesh

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #4 on: November 17, 2017, 10:47:52 AM »
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.

Offline Roshan

  • Newbie
  • *
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #5 on: November 17, 2017, 10:52:01 AM »
HTML

get rid of this rudement.

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.

Offline Karaan

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #6 on: November 17, 2017, 10:57:42 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.

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.

Offline Roshan

  • Newbie
  • *
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #7 on: November 17, 2017, 11:01:10 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.

Offline Karaan

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #8 on: November 17, 2017, 11:04: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

Offline Roshan

  • Newbie
  • *
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #9 on: November 17, 2017, 11:07:53 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.

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

This is generally some kind of hardness.

Offline Karaan

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #10 on: November 17, 2017, 11:11:37 AM »
This is an artificially created "problem"

Yes, the client and change no opportunity

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

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

Offline Roshan

  • Newbie
  • *
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #11 on: November 17, 2017, 11:14:30 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.

Offline Suneel

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: How can I avoid duplicate pages on my website?
« Reply #12 on: November 17, 2017, 11:16:27 AM »
Thanks for the tips and recommendations. The situation has been cleared up.