Can I have schema.org links as relative on my site? Getting an html validation error.
-
I'm getting an html validation error on relative schema.org links
"Bad value //schema.org/Organization for attribute itemtype on element div: The string //schema.org/Organization is not an absolute URL."
This is my code for https site:
<code class="input">e itemtype="//schema.org/Organization"><a itemprop="url" class="navbar-brand" …<="" code=""></a></code>
-
Yup.
-
I've read all your links and what I understand is an http link to schema.org is best practice. yes?
-
The error is looking for an absolute URL (including the http or https) so it doesn't look like it'll parse without it there. There's a nice discussion from a year ago at Stack Exchange on this as well, with the conclusion being, "Regarding HTTP vs. HTTPS, see also my answer to a similar (not duplicate) question: I’d recommend to always use the HTTP variant of Schema.org URIs." From: http://webmasters.stackexchange.com/questions/71857/schema-org-itemtype-identifier-should-it-use-relative-urls-or-https-links Cheers!
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
-
Linking back to the homepage im trying to rank - Using exact match anchor? Linking from footer?
Hello, Our site is an basically advertisements / listings website. Structure is as following <last 200="" adds=""> (homepage trying to rank) < category 1 > < category 1 > < category 1 > < category 1 > < category 1 ></last> My question - each of the categories links back within the menu back to homepage. The link text currently is last 200 adds. Can i use exact match anchor? Or should i use just last 200 ads? The issue is that one of my categorys (category 1) has already the exact match anchor im trying to rank for. So i can not use the same to link back to homepage. Im worried that google does not see any exact keyword anchor texts back to homepage hence will rank my homepage with lower strenght for that keyword . Im also worried that the category 1 page might now compete with the main homepage for this word (even tho at the moment category itself does not rank for this keyword) Can i link from footer back to homepage with an alternative keyword then to give some "context" to google more? Would this be spamming?
On-Page Optimization | | advertisingcloud0 -
Best Site Architecture tool for analysis my & competitors site?
Hello All, I am really confused with my current architecture for Ecommerce site, can you please suggest any tool or software where I can analysis mine and competitors site architecture ? Thanks!
On-Page Optimization | | pragnesh96390 -
How can i block the below URLs
Google indexed plugins pages for my website. Please check below. How can stop them to be indexed on google.? http://www.ayurjeewan.com/wp-content/plugins/LayerSlider/static/skins/glass/ http://www.ayurjeewan.com/wp-content/plugins/LayerSlider/static/skins/borderlesslight3d/ http://www.ayurjeewan.com/wp-content/plugins/LayerSlider/static/skins/defaultskin/ My robots.txt file is - User-agent: * Disallow: /wp-admin/
On-Page Optimization | | MasonBaker0 -
Internal link text
Hi With internal links, should I make sure to always use the same anchor text im trying to rank the page for? For example im having a tidy up and have realised im linking to the same page in multiple blog posts using different anchor text. Whats the rule of thumb here? Thanks Chris
On-Page Optimization | | mrcsleonard1 -
Is this sitemap valid?
I seem to be having a problem getting google to index all the pages on my site. Usually within a week they've been indexed. The sitemap url is http://www.local-sex-search.com/sitemap.xml (this is an adult dating site). Any help appreciated.
On-Page Optimization | | SamCUK0 -
Internal Linking
Hi Everyone, Should i be careful of how many internal links I have on one page? For example if i have a page that contains 700 words, can i have 5, 10, 15 internal links linking to other pages on my website? Is there a ratio for best practice. I know that internal linking is important for spiders to crawl your website but at the same time dont make it look spammy. I hope this makes sense. Thanks for any help.
On-Page Optimization | | Paul780 -
Three Sites or One?
I have a client who provides three distinct, although related, services. Some of his competitors only provide one of those services, and thus their sites are more saturated with that particular service. Would it be best to develop three different sites optimized for each particular service, or could I achieve the same effect by optimizing different sections of one site for each service?
On-Page Optimization | | kscotbarr0 -
Links to subfolders
Hi everyone, I would like to know your opinion on this. Do you feel like optimizing, especially pointing links to a subfolder, e.g. www.domain.com/en/ (english language), should be the same as doing that for the main URL (another language)? That said, do you think all the domain will benefit from anchors to subfolders? Thanks a lot!
On-Page Optimization | | SEOpt0