Trailing slash and rel="canonical"
-
Our website is in a directory format:
http://www.website.com/website.asp
Our homepage display URL is http://www.website.com which currently matches our to eliminate the possibility of duplicate content.
However, I noticed that in the SERPs, google displays the homepage with a trailing slash http://www.website.com/
My question: should I change the rel="canonical" to have a trailing slash? I noticed one of our competitors uses the trailing slash in their rel="canonical"
Do potential benefits outweigh the risks?
I can PM further information if necessary.
Thanks for the assistance in advance...
-
Thanks for the help George and participating in the discussion. I like the ease of the syntax involved with the non-www version, but I think people's and browsers natural inclination towards the www version makes it the most practical at this juncture. Perhaps if you're building a new site the less traditional non-www might be used, but like yourself, I also prefer the www.
Thanks,
Marty
-
It's really up to you and your marketing team I suppose. Maybe ask which sounds better (e.g. "for the best jambalaya in town go to www.jambalaya.com!" vs. "for the best jambalaya in town go to jambalaya.com!").
I prefer www.example.com myself.
-
Yes, I realized my typo after I posted, thanks. We do use the www version consistently, so no problem there. That being said, what's your take on the www vs non-www preferred domain structure, I've noticed some popular site (mashable comes to mind) going away from the www preferred domain -- just like to hear differing opinions if/when you have the time.
Thanks,
Marty
-
Yes, I realized my typo after I posted, thanks. We do use the www version consistently, so no problem there. That being said, what's your take on the www vs non-www preferred domain structure, I've noticed some popular site (mashable comes to mind) going away from the www preferred domain -- just like to hear differing opinions if/when you have the time.
Thanks,
Marty
-
I don't think you will lose any link juice.
I also don't think it matters which URL you use for domain root. That said, it would matter if you were using http://www.domain.com versus http://domain.com. Otherwise, I don't think you need to worry.
-
Hello George, thank you for your helpful response. While I knew it was the case for absolute URLs and subdirectories, I was unsure whether it also pertained to the root domain. The link provided a helpful explanation, although SEO's have been, "reasonably sure that just about all search engines will be normalizing all those URLs to be the same," in the past only to have those certainties change unexpectedly. That being said, I think the forum made a good point in saying,"search engines generally don't want to deliberately add duplicates to their index."
With our canonical URL set to www.domain.com , do you believe there will be any loss of link juice with backlinks using both the domain.com and domain.com/ , or will it just be a better indicator to the search engines that both URLs are one in the same? Also do you think it matters that the domain root with the trailing slash is the one that shows up in the Google SERPs? --- to me that seems to indicate that Google prefers the root domain in directories to have a trailing slash
-
Hi Marty, there is really no difference between root domain URLs with or without trailing slashes.
Note, however, that this is not true for absolute URLs: http://www.example.com/page is not the same as http://www.example.com/page/. For absolute URLs that are not the root domain, you need to be pretty explicit about whether or not it has a trailing slash. Many content management systems (e.g. WordPress) will let you choose to have trailing slashes or not.
At this point, I don't think you need to do anything with your homepage canonical URL since it is the same as adding a trailing slash.
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
-
Optimization for "Search by Photos" feature
Howdy, fellow mozzers, Does anyone know what affects a given company photos show up in the "Search by Photos" section? I can't find any decent info.. Here is the link to SEL, describing the feature (not even google themselves seem to have an announcement about it). https://searchengineland.com/google-showing-mobile-search-by-photos-option-in-selected-local-verticals-323237 Thanks in advance!
Intermediate & Advanced SEO | | DmitriiK0 -
How to Rank for "Interesting Finds" on Google Mobile?
Hi! Some of the sites I work with, when doing searches for their top terms, I am seeing some articles listed under "Interesting Finds". I have read some people thought it deals with AMP, others do not. Some thing it has to do with the structured data added to the page, some do not. Does anyone have a definitive answer on how to increase your chances of being listed here? Any example is attached. Any ideas? Uoi4Jyh
Intermediate & Advanced SEO | | vetofunk0 -
Content Strategy/Duplicate Content Issue, rel=canonical question
Hi Mozzers: We have a client who regularly pays to have high-quality content produced for their company blog. When I say 'high quality' I mean 1000 - 2000 word posts written to a technical audience by a lawyer. We recently found out that, prior to the content going on their blog, they're shipping it off to two syndication sites, both of which slap rel=canonical on them. By the time the content makes it to the blog, it has probably appeared in two other places. What are some thoughts about how 'awful' a practice this is? Of course, I'm arguing to them that the ranking of the content on their blog is bound to be suffering and that, at least, they should post to their own site first and, if at all, only post to other sites several weeks out. Does anyone have deeper thinking about this?
Intermediate & Advanced SEO | | Daaveey0 -
Google Search Console "Change of Address" - Failed Redirection Test
I have a client who has a lot of domain variations, which have all been set up in Google Search Console. I requested that the client use the COA feature in GSC for the domains that are now redirecting to other domains that they own (which are set up in GSC). The problem is that we're not redirecting the homepages to the homepages of the destination domains. So, GSC is giving us this error message: fails redirection test: The old site redirects to www.domain.com/blog, which does not correspond to the new site you chose. Is our only way to use GSC COA for these domains to change the homepage redirect to go to the homepage of the destination domain? We don't really want that since the domain we're redirecting is a "blog.domain1.com" subdomain and we want to redirect it to "domain2.com/blog". Any help appreciated! Thanks,
Intermediate & Advanced SEO | | kernmedia
Dan0 -
Duplicate content on URL trailing slash
Hello, Some time ago, we accidentally made changes to our site which modified the way urls in links are generated. At once, trailing slashes were added to many urls (only in links). Links that used to send to
Intermediate & Advanced SEO | | yacpro13
example.com/webpage.html Were now linking to
example.com/webpage.html/ Urls in the xml sitemap remained unchanged (no trailing slash). We started noticing duplicate content (because our site renders the same page with or without the trailing shash). We corrected the problematic php url function so that now, all links on the site link to a url without trailing slash. However, Google had time to index these pages. Is implementing 301 redirects required in this case?1 -
Redirect old "not found" url (at http) to new corresponding page (now at https)
My least favorite part of SEO 😉 I'm trying to redirect an old url that no longer exists to our new website that is built with https. The old url: http://www.thinworks.com/palm-beach-gardens-team/ New url: https://www.thinworks.com/palm-beach-gardens/ This isn't working with my standard process of the quick redirection plugin in WP or through htaccess because the old site url is at http and not https. Any help would be much appreciated! How do I accomplish this, where do I do it and what's the code I'd use? Thank you Moz community! Ricky
Intermediate & Advanced SEO | | SUCCESSagency0 -
"noindex, follow" or "robots.txt" for thin content pages
Does anyone have any testing evidence what is better to use for pages with thin content, yet important pages to keep on a website? I am referring to content shared across multiple websites (such as e-commerce, real estate etc). Imagine a website with 300 high quality pages indexed and 5,000 thin product type pages, which are pages that would not generate relevant search traffic. Question goes: Does the interlinking value achieved by "noindex, follow" outweigh the negative of Google having to crawl all those "noindex" pages? With robots.txt one has Google's crawling focus on just the important pages that are indexed and that may give ranking a boost. Any experiments with insight to this would be great. I do get the story about "make the pages unique", "get customer reviews and comments" etc....but the above question is the important question here.
Intermediate & Advanced SEO | | khi50 -
On page report card for the keyword "computers"
I was looking at which websites ranks in the TOP 3 for the keyword "computers"... I noticed that first is wikipedia and then there are Dell and Apple... I then did an on page report card and I noticed that wikipedia has a grade A (which is great ) However, Apple has an F ( which sucks !! ) but there still rank out there. My question is why is Apple ranking for the keyword computers with no tiitle, no URL, no H1, no body, no B/Strong... when wikipedia has all of that and the term " computers " occurs 290 times on its page... Is is due to the fact that apple has millions of external links and is that enough to rank even with an " irrelevant " page ? By the way I have noticed that on other keywords such as " bicycle ". Wikipedia is ranking 1 st and then sites like www.trekbikes.com are out there but they shouldn't based on their homepage "optimization ". I know there are other factors but I am just trying to figure why such sites ( like apple or trek bikes ) rank out there. Thank you,
Intermediate & Advanced SEO | | seoanalytics0