Do canonical links require a full domain?

Directly from Google: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139394 Can the link be relative or absolute? rel=”canonical” can be used with relative or absolute links, but we recommend using absolute links to minimize potential confusion or difficulties. If your document specifies a base link, any relative links will be relative to that base link.

Microdata or JSON-LD? I’m confused

Consumers that support Microdata support Microdata, no matter if or where Microdata is specified. It’s conceivable that new consumers might decide not to support it, but the syntax is still very popular and still part of WHATWG’s HTML Living Standard, so it’s probably not going to vanish. About the consumer Google Some years ago, JSON-LD … Read more

What happens if the meta tags are present in the document body?

This is of course invalid as per HTML4.01. META tags are only allowed within HEAD (just like, say, TITLE) so by putting it into a BODY, you’re essentially creating an invalid markup. From the cursory tests, it seems that some browsers (e.g. Firefox 3.5 and Safari 4) actually put these elements into HEAD when creating … Read more

Best JSON-LD practices: using multiple elements?

There is no benefit in having single or multiple data blocks, other than limitations around how you might store and manage schema data in your website. For example, you might need them separate if different components within your website are responsible for generating each data block independently. Alternatively, if your website is able to manage … Read more

What’s a `{jsonObj}` in a `head` section do?

In your example, the script element is used as data block, which contains JSON-LD (type=”application/ld+json”). JSON-LD is a RDF serialization. It allows you to publish Linked Data (or structured data) using JSON. In your example, the vocabulary Schema.org is used (“@context”: “http://schema.org”). This structured data can be used by any interested consumer. Prominent consumers are … Read more

What are the important meta tags I must put in my website? [closed]

I realize this question is old, but it’s still a top google hit, so I thought I would give an updated answer that includes popular social media sites. I generally have four groups of meta info: Regular Meta Info – used by search engines and browsers <title>{{pageTitle}}</title> <meta charset=”utf-8″><!– html5 version of http-equiv=”Content-Type”… –> <meta … Read more

Ignore URLs in robot.txt with specific parameters?

Here’s a solutions if you want to disallow query strings: Disallow: /*?* or if you want to be more precise on your query string: Disallow: /*?dir=*&order=*&p=* You can also add to the robots.txt which url to allow Allow: /new-printer$ The $ will make sure only the /new-printer will be allowed. More info: http://code.google.com/web/controlcrawlindex/docs/robots_txt.html Advanced Usage … Read more

Anchors inside headers, or vice versa – is there a different in relation to SEO? [closed]

Prior to HTML5: The anchor has to be inside the header, you cannot put a block-level element inside an anchor, and most browsers will not render it 100% reliably if you do. In HTML5: It doesn’t matter, use whichever one makes the most semantic sense. Likely the first one. Remember that if your document is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)