Duplicate title tags being caused by upper case and lower case version of urls'
-
Hi
GWT is reporting lots of duplicate titles for a clients new site.
Mainly these are due to 2x different versions of the url, one with words starting with an upper case character and the other all lower case.
Clients dev saying this has something to do with windows server and is ok!
Is this correct or should i be telling them to delete and then 301 redirect all upper case versions to the lower case (since lower case better practice) and that will deal with the reported dupe titles ?
All Best
Dan
-
Hi Tom
Sorry to be a pain but please can you confirm re my latest question/comment reply to yours, i.e. does your advice still stand if client on a windows server (since i dont think have .htaccess files or do/can they?)
And if not then is there a similar course of action that can be taken ?
Cheers
Dan
-
Many Thanks Raymond !
All Best
Dan
-
That great Tom thanks alot for your advice !
Clients on a windows server, am i right in thinking they dont have htaccess files since they are just on apache ?
If so is principle/code the same and just done in a different file ? if so any ideas what that file is ? or am i mistaken and windows do have htaccess files ?
Cheers
Dan
-
Hi Dan
I wouldn't want to leave anything to doubt and would prefer to have 1 version of each URL available.
Fortunately, a fairly simple solution can be put in place in your htaccess file. As always, please backup and test before trying any implementation - I can't tell you how many times I've made a simple mistake in the htaccess file that causes big problems!
Anyway, the code you'd want to enter at the top of the file is:
RewriteEngine On
RewriteMap lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]That code will basically rewrite any URL containing uppercase letters to the same URL using only lowercase.
Redirects are quicker and more reliable than canonical tags in my experience and this doesn't take long to get implemented, so best not leave anything to chance.
Hope this helps.
-
GWT sometimes takes a while to register the change. It just actually happened on one of my clients pages where there was a bug in the code made by the developer and they got 30,000 duplicate title and description errors. It was fixed about 2 months ago and while the errors have dropped to 2000 or so, it is still not at zero yet, so it does take some time depending on how often Google crawls the site.
If the developer says they did it, I would recommend the first thing you do is simply check that they did it. Go to one of the pages in question, both one with capital and without, and do a view source on both to check that the rel="canonical" tag is there and is correct. Programmers don't always know much about SEO so they may be implementing them wrong.
-
Thanks Raymond
The developers are saying they have done this
Does that mean that if its showing in GWT it hasnt been done ?
Cheers
Dan
-
As a simpler solution, why don't you just add a rel="canonical" tag to each page specifying the one you want? That should take care of any duplicate content issues.
I hope this helps.
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
-
International SEO - Hreflang tags and URL Structure
Hello, I wonder if any SEO internationalisation experts can help. We are a UK centric business with a .com domain which all our traffic currently goes to. We have been growing in the US and are therefore looking to internationalise our website by building out some US pages using the subfolder .com/us. Since the keywords we wish to target in the US are different to the keywords we are targeting elsewhere, when implementing hreflang tags is it possible to use a different URL for the US page? So let’s say we are targeting ‘estate car’ generally but want to target ’station wagon’ as the keyword for the equivalent US page, can the URLs be different? Example: General page: www.example.com/estate-car US: www.example.com/us/station-wagon Hreflang tags: Would that be the correct implementation? Any help or guidance would be much appreciated!
Technical SEO | | SEOCT0 -
Should I use canonical tag in these cases?
Should I use canonical tag in these cases? On the page itself (with the tag pointing to itself) On pages that doesn't have duplicate versions
Technical SEO | | GoMentor0 -
Why does my 301 show the old urls with new descriptions and titles?
Hi all, We've just rebranded. The 301 appears to have worked well and moved the results and rankings onto the new domain. However a site:olddomain.com search in Google brings up about a hundred pages that have the new titles and descriptions but show the old urls - does anyone have any idea how to make the old domain disappear from the SERPS? Many thanks, Richard
Technical SEO | | panini0 -
Bars Verus Hyphens in Title Tags
It has been quite a while since I have seen an article really talk about this and I am wondering if this even matters anymore? I prefer the look of a - rather than a | but just wondering if this is still a thing... If you know of a recent article going into findings on this supporting one or the other it would be appreciated. Thanks!
Technical SEO | | DRSearchEngOpt0 -
Page title tags and joomla/JCE
I'm working with a joomla/JCE website. At the moment, the 'title' field in articels controls the page title, menu item name and H1 tag. I've read that I can stop this happening so that I can name each separately and get my Page title tag back! Is anyone using joomla/JCE and can give any advice on how to do this? Many thanks. Iain
Technical SEO | | iain0 -
Understanding Duplicate Titles in Wordpress
I have duplicate title errors in Wordpress and I cannot pinpoint the problem. I have my blog set up so that the home page of the blog has the most recent posts. In my campaign report somehow the page directory is being found and I can't find any links on my blog to those pages. the errors are on pages that are like the following www.example.com/blog/page/13/ www.example.com/blog/page/14/ I am using Yoast and I thought I had it set up correctly. The other pages have the correct title and canonical tags, but he urls ending with page do not, but the page directory is duplicating the home page title. How or where can i fix this issue?
Technical SEO | | hfranz0 -
Does daily changing of price information in a title tag damage SEO?
Hi I'm thinking about changing the title tag for all my pages daily, updating it with the most current price information. (As I think this could improve CTR) All the other keywords in the title tag would remain the same however. Does anyone think this is likely to cause a problem with regards to ranking in Google and other search engines? Thanks for any / all replies! Cheers
Technical SEO | | joeprice0 -
When creating articles what are the rules of thumb for titles and url links.
For example lets say I'm looking to rank for “Window Glass Replacement”. What kinds of articles should I create for this? Does it matter? Should I create articles such as How to know if your windows need replacement, then have the text in my link say “Window Glass Replacement.” Should I try and vary the link name? Should I vary the titles of my articles, or just make sure the content is different?
Technical SEO | | marker-3115280