My Business
4.7K members online now
4.7K members online now
Follow threads that discuss the latest tips on how to get your business online… for free!
Guide Me
star_border
Reply

Schema for local business using SSL site

Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

Hello, i currently use the default schema for local business which refers to my url as http and image http

<a itemprop=url href=http://www.mysite.co.uk/></a>

image

<meta itemprop=image content=http://www.mysite.co.uk/facebooklogos.jpg>

 

Can i not use relative url's to work on https?

if i try with the itemprop=url  and test it with https://developers.google.com/structured-data/testing-tool/ it always defaults the url to http and image is as put i.e //www.

Also the schema references are also all http

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Paul P
March 2016

Re: Schema for local business using SSL site

Explorer ✭ ✭ ☆
# 12
Explorer ✭ ✭ ☆
I'm sorry I didn't completely understand the question but yes, for the schema site you can use http or https.

View solution in original post

Re: Schema for local business using SSL site

Top Contributor
# 2
Top Contributor

Hi @Paul P

 

Personally Schema in HTML is throwing up new error after error in the structured data testing tool, even schema from schema.org that I now use JSON-LD because it seems the only thing that the testing tool likes and i know its ok.

 

Anyway, I dont think its the schema but the testing tool.

 

When i check my schema with https its all ok

 

screencapture (42).png



Tim Capper, Google My Business Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.

Find me on: Google+ | Twitter | Facebook | Linkedin
Tim operates a bespoke Local SEO Consultancy in the UK, Online Ownership

Re: Schema for local business using SSL site

Follower ✭ ☆ ☆
# 3
Follower ✭ ☆ ☆
With http it is fine, likewise with https, i was looking for a relative URL so as to work on both https and http. I tend not to use JSON-LD as it hides the information from the visitor to the page.
I guess i will just have to have either http or https, once i 301 redirect pages to https then change them?

Re: Schema for local business using SSL site

Top Contributor
# 4
Top Contributor
Sounds like a plan.

If you mark up the info on page in JSON, you are not hiding anything



Tim Capper, Google My Business Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.

Find me on: Google+ | Twitter | Facebook | Linkedin
Tim operates a bespoke Local SEO Consultancy in the UK, Online Ownership

Re: Schema for local business using SSL site

Follower ✭ ☆ ☆
# 5
Follower ✭ ☆ ☆
Are you not? when i tried that my address, email were not visible?

Re: Schema for local business using SSL site

Top Contributor
# 6
Top Contributor
Nope mine seems ok ? hmmm



Tim Capper, Google My Business Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.

Find me on: Google+ | Twitter | Facebook | Linkedin
Tim operates a bespoke Local SEO Consultancy in the UK, Online Ownership

Re: Schema for local business using SSL site

Top Contributor
# 7
Top Contributor
last week i had to use HTML on a clients page for specific events .... testing tools was all Errors, but it appears perfect in search results with all events listed in rich snippets.

Go figure ?



Tim Capper, Google My Business Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.

Find me on: Google+ | Twitter | Facebook | Linkedin
Tim operates a bespoke Local SEO Consultancy in the UK, Online Ownership

Re: Schema for local business using SSL site

Follower ✭ ☆ ☆
# 8
Follower ✭ ☆ ☆
Must admit i,m not experiencing any errors, just thought there might be a way to use schema that satisfies https and http websites, but it seems you need an absolute url rather than a relative one?

Re: Schema for local business using SSL site

Follower ✭ ☆ ☆
# 9
Follower ✭ ☆ ☆
Looking at yours Tim you have it after the closing </body> tag and i can't see that on the page your LD+json the address is written in html that is visible

Re: Schema for local business using SSL site

Explorer ✭ ✭ ☆
# 10
Explorer ✭ ✭ ☆
Hi Paul,

Not sure if I'm understanding correctly but JSON-LD markup doesn't alter the displayed content regardless of whether it's placed in the head or body section of the HTML. If using the JSON-LD format you should only markup content that's already displayed on the page because in general, as I'm sure you are aware, it goes against Google's guidelines to markup content that is in no way visible to users. So if you want the email to be displayed on the page you need to add for example:

<a href-"mailto:example@example.com">example@example.com</a>

And then include it in the JSON-LD markup as follows:

"email" : "example@example.com",

Grace
Grace