Home page duplicate content...
-
Hello all!
I've just downloaded my first Moz crawl CSV and I noticed that the home page appears twice - one with an appending forward slash at the end:
http://www.example.com
http://www.example.com/For any of my product and category pages that encounter this problem - it's automatically resolved with a canonical tag. Should I create the same canonical tag for my home page?
rel="canonical" href="http://www.example.com" />
-
Hi Liam,
If you have a mix of slash and no-slash URL's, just make sure that they all forward correctly.
If you go to www.example.com/product/, does that forward correctly to www.example.com/product, or what does it do?
If you wish to PM me your URL, I will happily do a quick crawl to make sure there is nothing else that might cause you issues.
-Andy
-
No problem Liam,
You can safely canonical your home page to itself. I've had 2 sites setup that way for a few years now.
Good luck,
Don
-
I didn't want to force the removal or the append of a forward slash site-wide because "most" URL's (around 5,000 of them) don't use forward slash (products, categories, pages etc) - but there's a few pages that are part of the CMS such as account, billing, shopping cart etc that do use an appending forward slash. I think I'm going to give the canonical tag a shot for now - I can't see there being any negatives of using it on the home page to point to itself - it's just I've not heard of many people have to use it on the home page!
EDIT: Interesting. I viewed the source of http://www.moz.com/? - to see if they were using a home page canonical tag, and they were!
-
HI Liam,
Yes you can fix this with a canonical tag or you can do a blanket fix that redirects all "/" urls to the non-slash version with .htaccess.
This should work in the .htaccess file
RewriteRule ^(.*)/$ /$1 [L,R=301]
Hope it helps,
Don
-
Hi Liam,
To enforce a no trailing slash policy sitewide, you need to do this in the .htaccess file. You do this by adding the following:
**`RewriteCond%{REQUEST_FILENAME}!-d RewriteRule^(.*)/$ /$1 [L,R=301]`** If you wanted to enforce a trailing slash policy, you would instead add this.
RewriteCond%{REQUEST_FILENAME}!-f RewriteRule^(.*[^/])$ /$1/[L,R=301]
-Andy
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 page content & titles on the same domain
Hey, My website: http://www.electromarket.co.uk is running Magento Enterprise. The issue I'm running into is that the URLs can be shortened and modified to display different things on the website itself. Here's a few examples. Product Page URL: http://www.electromarket.co.uk/speakers-audio-equipment/dj-pa-speakers/studio-bedroom-monitors/bba0051 OR I could remove everything in the URL and just have: http://www.electromarket.co.uk/bba0051 and the link will work just as well. Now my problem is, these two URL's load the same page title, same content, same everything, because essentially they are the very same web page. But how do I tell Google that? Do I need to tell Google that? And would I benefit by using a redirect for the shorter URLs? Thanks!
Technical SEO | | tomhall900 -
Duplicates on the page
Hello SEOMOZ, I've one big question about one project. We have a page http://eb5info.com/eb5-attorneys and a lot of other similar pages. And we got a big list of errors, warnings saying that we have duplicate pages. But in real not all of them are same, they have small differences. For example - you select "State" in the left sidebar and you see a list on the right. List on the right panel is changing depending on the what you selecting on the left. But on report pages marked as duplicates. Maybe you can give some advices how to improve quality of the pages and make SEO better? Thanks Igor
Technical SEO | | usadvisors0 -
I am trying to correct error report of duplicate page content. However I am unable to find in over 100 blogs the page which contains similar content to the page SEOmoz reported as having similar content is my only option to just dlete the blog page?
I am trying to correct duplicate content. However SEOmoz only reports and shows the page of duplicate content. I have 5 years worth of blogs and cannot find the duplicate page. Is my only option to just delete the page to improve my rankings. Brooke
Technical SEO | | wianno1680 -
Duplicate Page Title with Pretashop
We have our main website and blog in Wordpress under www.enasport.com and our shop with Prestashop under www.enasport.com/productos so all our products have for example www.enasport.com/productos/56-creatina-monohidrato.html I wonder if this is the problem with Duplicate Page Title as seems we have more than 200 of this issue. Is there any way to solve this?
Technical SEO | | ENASports0 -
How do I fix duplicate content with the home page?
This is probably SEO 101, but I'm unsure what to do here... Last week my weekly crawl diagnostics were off the chart because http:// was not resolving to http://www...fixed that but now it's saying I have duplicate content on: http://www.......com http://www.......com/index.php How do I fix this? Thanks in advance!
Technical SEO | | jgower0 -
Duplicate Content
Hi - We are due to launch a .com version of our site, with the ability to put prices into local currency, whereas our .co.uk site will be solely £. If the content on both the .com and .co.uk sites is the same (at product level mainly), will we be penalised? What is the best way to get around this?
Technical SEO | | swgolf1230 -
How do i deal with duplicate content on the same domain?
I'm trying to find out if there's a way we can combat similar content on different pages on the same site, without having to re write the whole lot? Any ideas?
Technical SEO | | indurain0 -
Why are my pages getting duplicate content errors?
Studying the Duplicate Page Content report reveals that all (or many) of my pages are getting flagged as having duplicate content because the crawler thinks there are two versions of the same page: http://www.mapsalive.com/Features/audio.aspx http://www.mapsalive.com/Features/Audio.aspx The only difference is the capitalization. We don't have two versions of the page so I don't understand what I'm missing or how to correct this. Anyone have any thoughts for what to look for?
Technical SEO | | jkenyon0