Canonical URLs and SEO
-
After publishing my new wordpress website my on page analysis shows two canonical urls on my homepage. In checking the source code the Yoast SEO plugin states my canoncial url is www.homepage.ca/ This is the only one showing. Having said this I do not add the trailing slash to anything on my url structure. Could this be why the on page analysis tool says there are 2? If so is there any way to resolve this?
-
-
no it is not checked
-
Ah I think I may have found it.
Under Permalinks on the Yoast menu on the left do you have
"Enforce a trailing slash on all category and tag URL's" ticked or not?
-
They do not have the slash but the Yoast SEO package has it in the automatic rel=canonical which I cannot find to change
-
Oh I see, you've got a specialised set-up. Okay.
In which case the actual place you want to be checking is under Settings > General and look at your Wordpress and website address to see if those have a trailing backslash or not.
-
all done through the widgets per attached example
-
And can you show me the screen/section when you're editing the homepage text?
(we will get to the bottom of this one, it's just taking time).
-
-
Can you take some screenshots so I can see what you're seeing?
Can you post firstly the page you see when you are editing the home page content? (not the layout/design).
-
i created the home page through the appearance/widgets menu using an agentpress theme built on the genesis framework. there is no "home page" appearing as either a page or post in these menus (unless I am missing something)
-
Don't open up the Yoast SEO on it's own. Go edit the home page text as you would do normally. It will be under 'Pages' or 'Posts' depending on which way you created your home page.
Then edit the page/post in the normal way and then the Yoast box is under the normal editing window.
If it's not there make sure you're running the most up-to-date version of Wordpress and Yoast SEO and re-try
-
Hi Martin, I must be looking in the wrong place. When I open up Yoast SEO I can find menus for dashboard, titles&meta, social, sitemaps, permalinks, internal links, rss, import&export and edit files (which gives me acess to htaccess). I can find the advanced tab for all pages but the home page. Where do I find it? thanks
-
In which case I suggest you do the following:-
- Edit your home page as normal through the WP back end
- In the 'Wordpress SEO by Yoast' box under the editor select the 'Advanced' tab
- Enter your Canonical URL without the backslash there.
Publish and refresh the 'live' page and it all should marry up.
You're still probably not losing out with or without the trailing backslash, but it definitely makes it cleaner if your incoming links are precisely the same as your canonical definition.
Let me know if this works out for you.
-
Using the SEOmoz on page analysis tool. The source code shows rel canonical for www.homepage.ca/ yet my site url is www.homepage.ca with all redirects there
-
What tool are you using for your on-page analysis?
Have you done a Google search for : site:www.homepage.ca and see if two URLs are listed?
If the source code is only giving you one rel canonical tag then regardless of your analysis there's only one canonical URL so I don't think you have anything to worry about, so long as you agree with the URL given in that tag
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
-
SEO question
why does a business rank differ on google search and google maps (for example, a hair salon we do seo for ranks 5th for "hair salon in Dublin" on Google Maps and ranks 10th on Google search)
On-Page Optimization | | ryan.mamma0 -
NoIndex or Rel=Canonical Pagination
Hello, I had a question about noindex and Rel=Canonical on category page pagination. On my site, the category page the meta="robots" has "Index,Follow" tags and the rel="canonical" is the main category page, but when a user sorts the page the meta="robots" changes to "NoIndex, Follow." My question is should the sorted page be name="robots" content="INDEX,FOLLOW" /> since the rel="canonical" is pointing to the main page?? Or does it matter that it is NoIndex?? Any thoughts on this topic would be awesome. Thanks. Main Category Page
On-Page Optimization | | chuck-layton
https://www.site.com/category/
name="robots" content="INDEX,FOLLOW" />
rel="canonical" href="https://www.site.com/category/"/> Name Sorted Page
https://www.site.com/category/?dir=asc&order=name
name="robots" content="NOINDEX, FOLLOW" />
rel="canonical" href="https://www.site.com/category/">0 -
SEO before products on ecommerce site
Our company plans to quickly launch an e-commerce site to sell religion themed banners (religionbanners.com). We'll have our products up on the site in about a week. Should I block Google from accessing the site during this period? Is there anything wrong with starting simple SEO tasks such as submitting the site map on Google Search Console prior to us having the products on the site?
On-Page Optimization | | art_litho0 -
How to fix this URL?
Moz crawl test only show one URL indexed for the website - http://ravisharrma.com/ Site:http://ravisharrma.com/ shows 3 URLs and how to fix URLs for the website?
On-Page Optimization | | Dan_Brown10 -
Our urls for adwords are slightly different from current urls presented on site (weused htaccess to help create shorter urls). How important is it that the adwords url match the sitemap url for keywords on those pages?
Hello, We have dynamic urls that we have made into short urls through htaccess and code manipulation. Some of our adwords urls are different from our page urls - for example a) Latest version of page www.abc.com/x-y-z.html b) Previous version of url www.abc.com/x+y+z.html c) raw original version www.abc.com/yyy/zzz?category=X&Product-code=Y etc etc. Would my ranking for keywords on the page improve if I diligently made all of them the same? They all go to the same page even now, and no 404 errors or anything. Thanks Sam
On-Page Optimization | | samgold0 -
Category page canonical tag
I know this question has been asked a few times on here but I'm looking for very specific advice. Currently when you go to a category, say http://www.bronterose.co.uk/range.html, a canonical tag is added to the head of the page. There are plenty of "variant" pages which carry the same tag, for example: /range.html?p=2
On-Page Optimization | | crichardson9
/range.html?p=3
/range.html?dir=asc&order=price
/range.html?dir=asc&limit=all&order=price Is it wise to push the "link juice" for each of these variant pages to the top level page? Or should each variant page have its own unique canonical tag? After reading many blog posts, guides and papers I'm truly confused! Any general guidance or recommendations would be much appreciated. Chris.1 -
Custom Landing Page URLs
I will begin creating custom landing pages optimized for long-tail keywords. Placing the keywords in the URL is obviously important -- Question: would it be detrimental to rankings to have extra characters extending past the keyword? I'm not able to use tracking code, but need to put an identifier in the URL (clp = custom landing page). For example, is "www.domain.com/silver-fish.html" going to perform meaningfully better than "www.domain.com/silver-fish-clp.html" for the kw phrase "silver fish"? There will obviously be a lot of on-page optimization in addition to just structuring the URLs. Thank you. SIMbiz
On-Page Optimization | | SIMbiz0 -
Brand Name URL Redirecting to Actual URL
So we have already built a site under a parent company's URL: parentcompany.com And now we have their branded product lines in directories: parentcompany.com/brand-name1, and parentcompany.com/brand-name2 We also own the actual URL Brand Name 1 (which is also the exact description of the product): brandname1.com We do not yet own the URL for Brand Name 2 (which is also the exact description of the product): brandname2.com. This is because a squatter is sitting on it and is asking $10,000+ for it. What we are trying to determine is how valuable these brand name URLs are since they will be redirecting and not the actual site's primary domain name. Anybody know how much of an effect owning those and redirecting has on ranking for those brand names that are also very descriptive of the products? Would we be smarter to spend $10,000 on adwords or 10,000 on the domain? Thanks!
On-Page Optimization | | grayloon1