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 content analysis
Hi all,We have some pages being flagged as duplicates by the google search console. However, we believe the content on these pages is distinctly different (for example, they have completely different search results returned, different headings etc). An example of two pages google finds to be duplicates is below. if anyone can spot what might be causing the duplicate issue here, would very much appreciate suggestions! Thanks in advance.
Technical SEO | | Eric_S
Examples: https://www.vouchedfor.co.uk/IFA-financial-advisor-mortgage/harborne
https://www.vouchedfor.co.uk/accountant/harborne0 -
Duplicate Content
HI There, Hoping someone can help me - before i damage my desk banging my head. Getting notifications from ahrefs and Moz for duplicate content. I have no idea where these weird urls have came from , but they do take us to the correct page (but it seems a duplicate of this page). correct url http://www.acsilver.co.uk/shop/pc/Antique-Vintage-Rings-c152.htm Incorrect url http://www.acsilver.co.uk/shop/pc/vintage-Vintage-Rings- c152.htm This is showing for most of our store categories 😞 Desperate for help as to what could be causing these issues. I have a technical member of the ecommerce software go through the large sitemap files and they assured me it wasn't linked to the sitemap files. Gemma
Technical SEO | | acsilver0 -
Duplicate Page Content for www and non-www. Help!
Hi guys, having a bit of a tough time here... MOZ is reporting duplicate content for 21 pages on eagleplumbing.co.nz, however the reported duplicate is the www version of the page. For example: http://eagleplumbing.co.nz and http://www.eagleplumbing.co.nz are considered duplicates (see screenshot attached) Currently in search console I have just updated the non-www version to be set as the preferred version (I changed this back and forth twice today because I am confused!!!). Does anyone know what the correct course of action should be in this case? Things I have considered doing include: changing the preferred version to the www version in webmaster tools, setting up 301 redirects using a wordpress plugin called Eggplant 301 redirects. I have been doing some really awesome content creation and have created some good quality citations, so I think this is only thing that is eaffecting my rank. Any help would be greatly appreciated. view?usp=sharing
Technical SEO | | QRate0 -
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 -
Duplicate Version of Home Page Causing Problems?
Hello, I have a .php based site and i'm curious if how we split traffic is negatively affecting our rankings. Currently, if you visit Lipozene.com you are split 50/50 between two pages, indexa.php and indexb.php. These have identical content right now, and i'm curious if this has negatively affected our rankings. We've dropped off the SERPs for our brand term "lipozene" even though we are the official site and own www.lipozene.com . Any thoughts are greatly appreciated.
Technical SEO | | lipoweb0 -
Duplicate Page Title for Wordpress
Hello, We are using WP for our blog and keep getting Dup Page Title errors for our 12 author archives pages. The title of each page is the same, but I am wondering if this is WP issue with canonicalization working properly. The most recent four pages have a linking root domain and carry some Page Authority, but the older pages do not. Is this what Rand was talking about in his Google+ whiteboard Friday talk about blog post relevancy not lasting as long as articles? Here's what it looks like. Side question, is there a reason why the SEO Moz website doesn't have a Google+ button anywhere easy to find? Thank you, Michael
Technical SEO | | MKaloud1 -
How can i resolve Duplicate Page Content?
Hello, I have created one campaign over SEOmoz tools for my website AutoDreams.it i have found 159 duplicate page content. My problem is that this web site is about car adsso it is easy to create pages with duplicate content and also Car ads are placed byregistered users. How can i resolve this problem? Regards Francesco
Technical SEO | | francesco870 -
Is this considered as duplicate content?
One of my clients has a template page they have used repeatedly each time they have a new news item. The template includes a two-paragraph customer quote/testimonial for the company. So, they now have 100+ pages with the same customer quote. The rest of the page content / body copy is unique. Is there any likelihood of this being considered duplicate content?
Technical SEO | | bjalc20110