Duplicate Page title - PHP Experts!
-
After running a crawl diagnostics i was surprised to see 336 duplicate page titles. But i am wondering if it is true or not. Most of them are not a page at all but a .php variation.
for example: The following are all the same page, but a different limit on viewing listings. Limiting your view to 5, 10, 15, 20, 25 as you choose.
.com/?lang=en&limit=5
.com/?lang=en&limit=5&limitstart=10
.com/?lang=en&limit=5&limitstart=15
.com/?lang=en&limit=5&limitstart=20
.com/?lang=en&limit=5&limitstart=25Same type of things are going on all over the site causing 228 duplicate content errors and the already mentioned 336 duplicate pages. But is "crawl diagnostic telling the truth" or is it just some php thing? I am not a php expert so any input would be much appreciated.
What should i do?
-
Both Ryan and Marie provided good answers, but let me elaborate further.
This is not a php thing. You can verify this yourself by visiting these pages.
Does the page content change when you visit /?lang=en&limit=5&limitstart=20 and switch to /?lang=en&limit=5&limitstart=20? If these look like the same page, then you have a duplicate content/title issue on your hands.
Google's take on the matter is simple...
"Provide one version of a URL to reach a document
To prevent users from linking to one version of a URL and others linking to a different version (this could split the reputation of that content between the URLs), focus on using and referring to one URL in the structure and internal linking of your pages. If you do find that people are accessing the same content through multiple URLs, setting up a 301 redirect from non-preferred URLs to the dominant URL is a good solution for this. You may also use canonical URL or use the rel="canonical" link element if you cannot redirect"
You have several options to deal with this, depending on the content_._
- Use the canonical tag to point the different versions of the page towards a single, definitive URL. Best to use this option only if the pages are actually duplicate.
- If the pages are not duplicate in content, but duplicate in title, then make sure your CMS writes unique title tags for every unique page of content, as Marie describes.
- If these extra pages are producing lists of only slightly varying entries, like a list of blog archives, you may consider adding a Meta Robots tag to NOINDEX, FOLLOW those superfluous pages.
- If dealing with pagination, here's an excellent article from Adam Audette to help.
This is a tricky area, and you must be careful when dealing with duplicate content, because it's easy to make a mistake and have Google de-index your content. That said, by correcting these errors, you just might see an improvement in your indexation and traffic stats.
-
I'm not sure if this will answer your question or just confuse things, but here's my take on the situation.
Are the pages all duplicate content, or are the titles just duplicated? If this is all the exact same page but simply with a different url then the solution is to use a rel canonical tag. (See http://www.google.com/support/webmasters/bin/answer.py?answer=139394). This tells Google what the original version of the page is and to not index the other pages.
However, if these are all different pages and you are trying to create a unique title for each then there are some ways to do this. Like Ryan mentioned, if you're using a CMS (i.e. Wordpress) there's likely a plugin that will do this for you. But, if you have a static site then here is what I do. I have a static site and I have a page called, let's say, www.example.com/information?id=123. I have thousands of these pages but they all have different content. The content is generated from a database.
So, what I do is I put php in the head of the page, before the title. The php reads the database and grabs some information about the page and stores that information in a variable called $title. Then, in the title tag I do this:
<title><?php echo $title; ?></title>
Hopefully that makes sense!
-
Let me preface by saying I am not a PHP expert. I do have some familiarity with PHP and the issue you mention.
The bottom line, you do not wish to use the same title for multiple URLs. Using the URLs you shared, some possible titles would be:
Best Restaurants in Miami
Best Restaurants in Miami - Page 3
Best Restaurants in Miami - Page 4
You need to adjust your site code to add a page number to the existing URLs. Most popular software is set up to do this automatically.
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
-
Duplicate content, although page has "noindex"
Hello, I had an issue with some pages being listed as duplicate content in my weekly Moz report. I've since discussed it with my web dev team and we decided to stop the pages from being crawled. The web dev team added this coding to the pages <meta name='robots' content='max-image-preview:large, noindex dofollow' />, but the Moz report is still reporting the pages as duplicate content. Note from the developer "So as far as I can see we've added robots to prevent the issue but maybe there is some subtle change that's needed here. You could check in Google Search Console to see how its seeing this content or you could ask Moz why they are still reporting this and see if we've missed something?" Any help much appreciated!
Technical SEO | | rj_dale0 -
Pages with Duplicate Content
When I crawl my site through moz, it shows lots of Pages with Duplicate Content. The thing is all that pages are pagination pages. How should I solve this issue?
Technical SEO | | 100offdeal0 -
Duplicate Content/Similar Pages
Hello, I'm working on our site and I'm coming into an issue with the duplicate content. Our company manufactures heavy-duty mobile lifts. We have two main lifts. They are the same, except for capacity. We want to keep the format similar and the owner of the company wants each lift to have its own dedicated page. Obviously, since the layout is the same and content is similar I'm getting the duplicate content issue. We also have a section of our accessories and a section of our parts. Each of these sections have individual pages for the accessory/part. Again, the pages are laid out in a similar fashion to keep the cohesiveness, and the content is different, however similar. Meaning different terminology, part numbers, stock numbers, etc., but the overall wording is similar. What can I do to combat these issues? I think our ratings are dropping due to the duplicate content.
Technical SEO | | slecinc0 -
Multilingual -> ahref lang, canonical and duplicated title content
Hi all! We have our site eurasmus.com where we are implementing the multilingual.
Technical SEO | | Eurasmus.com
We have already available english and spanish and we use basically href lang to control different areas. First question: When a page is not translated but still is visible in both langauges under /en and /es is it enough with the hreflang or should we
add a canonical as well? Nowadays we are apply href lang and only canonicals to the one which are duplicated
in the same language. Second question: When some pages are not translated, like http://eurasmus.com/en/info/find-intern-placement-austria and http://eurasmus.com/es/info/find-intern-placement-austria,
we are setting up the href lang but still moz detects title and meta duplicated (not duplicate page content).
What do you suggest we should do? Let me know and thank you before hand for your help!0 -
Does Title Tag location in a page's source code matter?
Currently our meta description is on line 8 for our page - http://www.paintball-online.com/Paintball-Guns-And-Markers-0Y.aspx The title tag, however sits below a bunch of code on line 237 Does the location of the title tag, meta tags, and any structured data have any influence with respect to SEO and search engines? Put another way, could we benefit from moving the title tag up to the top? I "surfed 'n surfed" and could not find any articles about this. I would really appreciate any help on this as our site got decimated organically last May and we are looking for any help with SEO. NIck
Technical SEO | | Istoresinc0 -
Duplicate Titles Aren't Actually Duplicate
I am seeing duplicate title errors, but when I go to fix the problem, the titles are not actually identical. Any advice? Becky
Technical SEO | | Becky_Converge0 -
Duplicate Post Titles in WordPress with
Hi, First off, this is a WordPress specific question. we migrated a site into WordPress, with hundreds of long articles that are split into 3 or 4 pages each. Each of these articles was entered as an individual post, split into different pages using the tag. We're using the yoast seo plugin. The problem then is that each of the pages gets the same title and meta description. Has anyone a good solution to differentiate the pages? Thanks,
Technical SEO | | Andybod1