How to say to google that my subdomain is targeted to a specific country [closed] - subdomain

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I have these subdomains:
uk.example.com
india.example.com
es.example.com
And each one has content specific per each country.
If I go to google.co.uk I have to see only contents from uk.example.com.
Which is the right metadata for this?

EDIT:
Google does not use locational meta tags (like geo.position or
distribution) or HTML attributes for geotargeting.
So, you can't use <html lang="en-UK"> as I originally said.
But it seems from here:
The first three elements used for geotargeting are strongly tied to
the server and to the URLs used. It's difficult to determine
geotargeting on a page by page basis, so it makes sense to consider
using a URL structure that makes it easy to segment parts of the
website for geotargeting.
that specifying a url, like you did, is enough!
source: http://googlewebmastercentral.blogspot.co.il/2010/03/working-with-multi-regional-websites.html or https://support.google.com/webmasters/answer/182192?hl=en#2
OLD POST:
Google supports rel hreflang
<link rel="alternate" hreflang="es" href="http://www.example.com/" />
<link rel="alternate" hreflang="es-ES" href="http://es-es.example.com/" />
<link rel="alternate" hreflang="es-MX" href="http://es-mx.example.com/" />
<link rel="alternate" hreflang="en" href="http://en.example.com/" />
(source: http://googlewebmastercentral.blogspot.dk/2011/12/new-markup-for-multilingual-content.html)
but if you're buying new domains, it's best to have correct ccTLD:
If you use a ccTLD or a gTLD together with Webmaster Tools, then we'll mainly use the >geotargeting from there
(source: http://www.seroundtable.com/seo-geo-location-server-google-17468.html)
see also:
Which one is the right way to add geolocation meta info to a site?
http://googlewebmastercentral.blogspot.in/2013/05/6-quick-tips-for-international-websites.html

You can use the geotargeting tool in Webmaster Tools to indicate to Google that your site is targeted at a specific country. Do this only if your site has a gTLD (generic top-level domain name). However, don’t use this tool if your site targets more than a single country. For example, it would make sense to set a target of Canada for a site about restaurants in Montreal; but it would not make sense to set the same target for a site that targets French speakers in France, Canada, and Mali."
https://support.google.com/webmasters/answer/182192?hl=en#2

Related

Meaning and usage of meta tags [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have some questions about meta tags.
At the top of a tab, where the title shows up, there's an image next to it. How do I add an image like that?
The <meta name="keywords" content="HTML, Questions," meta tag, does it still have any purpose?
Why is <meta name="author" content="Firstname Lastname" Used? What purpose does it serve?
How do you use <meta viewport>?
Looks like you didn't do a great research because all these answers can be found easily.
Metatags info: https://github.com/joshbuchea/HEAD#meta
1- It's called favicon.
2- Used to has a purpose but didn't more.
3- Crawlers like Google, Facebook, or even a custom, may identify the Author of the page accordingly to that information.
4- https://stackoverflow.com/a/14775557/2873889
In the past, meta tags were used by search engines to index web pages based on title, description, and even keywords. However, certain websites started overusing them, cramming popular keywords in the hope of getting better search results. Google, recognizing this, announced that they don’t use meta keywords or descriptions in their search algorithms for ranking purposes.
Coming onto one attribute at a time:
1) Description- Search engines generates a description from the content attribute.
When you share URL of your webpage to other websites or platforms, let's say you share a blog on Whatsapp, Whatsapp will show the description along with your URL to the users. You can try it on your own.
2) charset="UTF-8" - sets the encoding of your webpage. Another encoding is UTF-16.
3) Keywords- Keywords help other applications to know more about your website. Although many websites still use the keywords value of the name attribute, Google doesn't consider this in its search ranking algorithm or when displaying search results.
4) Author- You can set the author of a page using author attribute.
5) - Before tablets and mobile phones, web pages were designed only for computer screens, and it was common for web pages to have a static design and a fixed size.
Then, when we started surfing the internet using tablets and mobile phones, fixed size web pages were too large to fit the viewport. To fix this, browsers on those devices scaled down the entire web page to fit the screen.
Meta tags can be used to perform the task of HTTP headers like redirection and refresh also.
To know more about meta tags you can refer to this link https://www.sitepoint.com/meta-tags-html-basics-best-practices/
Q1). You need to have a favicon . You can get more detail here: https://www.w3.org/2005/10/howto-favicon
Q2). Yes, meta tags are still useful.
Q3). This just states who created the webpage.
Q4). Check out https://www.w3schools.com/css/css_rwd_viewport.asp
Lastly, just look at w3schools.com and codeacademy.
You can add a favicon by using <link rel="icon" href="#" sizes="16*16"> and insert the image you want for your favicon in the href.
The keyword tag is used for search engine indexing.
The author tag is used to identify the creator of the content.Yes,both of them are still useful.
<meta name="viewport> is used to set the size of the visible portion of the document in different browsers:
<meta name="viewport" content="width=device-width, intial-scale=1.0">

What does "vr:canonical" mean?

What namespace/scheme/whatever does this "vr:canonical" come from?
<meta property="vr:canonical" content="URL_FROM_OTHER_PAGE" />
(edit: I know canonical links, just curious about that "vr:" thing)
After analyzing the page (and the code of its used trackers and counters and advertising scripts), this seems to be a property used by an advertising tool named "VisualRevenue", a product by the Company Outbrain.
Thanks for your effort.
For example:
<link rel="canonical" href="https://moz.com/blog" />
This would tell Google that the page in question should be treated as though it were a copy of the URL above and that all of the link & content metrics the engines apply should technically flow back to that URL.
The Canonical URL tag attribute is similar in many ways to a 301 redirect from an SEO perspective. In essence, you're telling the engines that multiple pages should be considered as one (which a 301 does), without actually redirecting visitors to the new URL

Fully Understanding hreflang

I have a website which currently displays all prices in US dollars. I'd like to change it to pounds if you are from the UK and euros if you are from France or Germany. The text on the page will always be displayed in English.
I've explored the various options and most say that Google prefers you to offer different urls for each variation rather that simply render different content based on the users location/ip address.
Therefore say I'm on my shop home page I would offer the following urls (which display the appropriate currency):
www.example.com/shop - default which is US dollars
www.example.com/uk/shop - UK
www.example.com/fr/shop - France
www.example.com/de/shop - Germany
Obviously I don't want Google to penalise me for duplicate content. I have been researching hreflang to get by this but haven't quite fully grasped it as a lot of the examples are over simplified.
Say for example I am on www.example.com/shop. Would I simply render the following within the head?:
<link rel="alternate" href="http://www.example.com/uk/shop" hreflang="en-gb" />
<link rel="alternate" href="http://www.example.com/fr/shop" hreflang="fr-fr" />
<link rel="alternate" href="http://www.example.com/de/shop" hreflang="de-de" />
<link rel="alternate" href="http://www.example.com/shop" hreflang="x-default" />
Now if I was on www.example.com/fr/shop would I need to render the same as above?
Additional Questions:
Should I provide a variant for en-us even though it would be the same as the default?
Also if the user was on www.example.com/shop and I detected the user was from France would I simply redirect the user to www.example.com/fr/shop? My trouble with this is how could someone in France see prices in dollars? I'm assuming I could store a cookie to make sure this redirection only happens the first time.
My final question is does this make sense to do this even though the text will still be in English and the content will only vary by price/currency?
I know that's quite a few questions but I'd really appreciate the clarification. Thanks
Obviously I don't want Google to penalise me for duplicate content.
Google does not penalize websites for duplicate content.
Say for example I am on www.example.com/shop. Would I simply render the following within the head?
Yes.
Now if I was on www.example.com/fr/shop would I need to render the same as above?
Yes.
Should I provide a variant for en-us even though it would be the same as the default?
No.
Also if the user was on www.example.com/shop and I detected the user was from France would I simply redirect the user to www.example.com/fr/shop? My trouble with this is how could someone in France see prices in dollars?
You should. Add a conversion button on your page.
My final question is does this make sense to do this even tough the text will still be in English and the content will only vary by price/currency?
Not really, you should have translated text too.

What is the function of the html "rel" attribute? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I understand that rel got something to do with relationships between things (documents? elements?) but I don't really get anything past that. What exactly does it do when used in the achor tag ?
Also, are there specific values for x in rel="x"?
Typically they are used to provide information to search engines about the structure of your website. For instance, you can give links a next or prev rel attribute for paginating links (links which show the next/last set of search results); A nofollow to inform search engines not to crawl (this is also good for not passing SEO 'link juice' to external or low priority pages); Or you could supply a canonical value to tell search engines which is the default link for the page it is looking at (sometimes pages are accessible via a number of different links, and this avoids indexing of duplicate content which could hurt your SEO).
This describes only a few possible uses - it is a very versatile tag.
With regards to navigation, pagination and canonicalization, here are couple of useful links from Google:
https://web.archive.org/web/20180125083221/https://support.google.com/webmasters/answer/1663744
https://support.google.com/webmasters/answer/139394
it specifies the relationship between the current document and the linked document.
here you can find a good reference:
http://reference.sitepoint.com/html/a/rel
and this was helpfull to me too
http://www.falsepositives.com/index.php/2009/03/24/html-tags-and-rel-attributes-you-really-should-know/
Regards
the rel attribute links files such as CSS(cascading Stylesheets) JS(Javascript), and other indexed files to its sources.
For example if I wanted to link a stylesheet to my index.html
I would type
<link rel="stylesheet" href="style.css" type="text/css" media="all" />
Let's see some examples of possible values of rel, which indicates the relationship between the href page(linked document) and the actual page:
cc by 2.0
Here the page indicates that the destination of that hyperlink is a license for the current page
<a rel="directory" href="http://dmoz.org/Computers/Internet/">Computers/Internet</a>
In this one the page indicates that the destination of the hyperlink is a directory listing containing an entry for the current page.
Check more at http://microformats.org/wiki/rel-faq#How_is_rel_used

Are HTML Meta Tags still important? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I read some articles on Internet, some said that search engine like Google and Bing don't care about HTML Meta Tags any more. Should I still need to maintain the HTML Meta Tags in my website properly?
Thanks!
Are meta tags critical? Every search engines emphasizes meta tags differently. Google doesn't let the public know how it uses meta tags. I have noticed that a lot of websites show up on the first page of Google for specific subjects and yet they don't have any keyword or description tags. So don't let anybody fool you by exaggerating how important they are for Search Engine Optimization. Search engines index algorithms vary greatly -- some assign a lot of importance to meta tags, so it is a good idea to use them.
Meta tags are lines of code that are hidden in web pages. The code information is not revealed in the web browser (but refer to the discussion of the description tag, below) but they are utilized by search engines to help categorize your web content. It is possible that you might choose to omit descriptions, or keywords, but your site won't look right if you don't put a "title" tag, since the web browsers will show it as "Untitled".
In order to obtain traffic (by cheating) a long time ago, people would place repetitive or irrelevant information into their meta tags -- "stuffing" them. As a penalty, several search engines don't put too much importance on keywords in meta tags, but they still look at them to be certain they have meaning. Whichever the case, your rank will probably suffer on other search engines if you lack meta tags, or have useless keywords.
The "head" section of a web page is where meta tags are found. Some people suggest using only lowercase letters in your tags, and avoid repeating terms within the keyword tag.
Generally speaking, the actual meta tag contents appear invisible; however the "description" meta tag's contents will turn up in the majority of search engines together with the page title in the search results. Do not overdo your meta description; you can place keywords in the description tag, but try to keep language natural, in complete sentences, and keep it short and relevant.
In short, yes - META tags are important. But not all of them.
Purely from search engine listings - Always include a useful META DESCRIPTION thats unique for every page - even if that doesn't bump you up the rankings, a good succinct description will do wonders for your click throughs and bounce rates, because people are more likely to think they can find what they are looking for.
I would also include META KEYWORDS although it should be said that its probably of no use - so I generally pick out some site wide keywords and use them throughout.
Other META tags have uses such as the ROBOTS tag, and the like - but they are for other purposes.
here is the thing: what do you summarize as meta tags, do you only mean meta tags or everything in the
<head>
of your HTML? the sloppy definition of meta tags mostly includes these elements as well.
these "meta" tags are still very very important for efficient SEO.
<title></title> (not really a meta tag, but in the <head> section) because google uses it (in most cases) as the headline of the listing in the SERP
<meta rel="description" content="because google uses this text here as the snippet text of the SERP (in most cases) listing">
<meta content='noindex, nofollow, noarchive, nosnippet' name='robots'/>
a very efficient directive to control the indexing behavior (and to some extend the crawling behavior and value allocation) of google
<meta name=”robots” content=”noodp”>
get rid of snippets that use http://www.dmoz.org/ for descriptions
<meta name="robots" content="noimageindex">
advises google to not index the images found on this page (but they might get indexed if they are used on other pages)
<link href='http://www.example.com/en/vienna/cha-no-ma' rel='canonical' />
(not meta, but in the head) communicate a canonical URL (the one you would like to get indexed) to the search engines.
<link href="http://www.example.com/en/vienna/b/billa" hreflang="en" rel="alternate" />
together with the canonical a cool way to communicate alternate language versions of a page to google
<link href='http://microformats.org/profile/hcard' rel='profile' />
if you want to achieve rich snippets in google by using microformats, these meta informations are necessary.
<META http-equiv="Content-Type" CONTENT="text/html; charset=iso-8859-1">
indication of content type and encoding
<META NAME="google-site-verification" CONTENT="+nxGUDJ4QpAZ5l9Bsjdi102tLVC21AIh5d1Nl23908vVuFHs34="/>
a way to verify your site for google webmaster tools
stuff that is not important:
meta keyword tag, just forget about it. its useless (and if you put spammy words in it even of negative value)