<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SEO &#8211; Diary of an Emacs tragic</title>
	<atom:link href="https://emacstragic.net/tag/seo/feed/" rel="self" type="application/rss+xml" />
	<link>https://emacstragic.net</link>
	<description>Jason Lewis</description>
	<lastBuildDate>Thu, 02 May 2013 06:00:11 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>

<image>
	<url>https://emacstragic.net/wp-content/uploads/2018/12/cropped-jason-lewis-profile-picture-square-150x150.jpg</url>
	<title>SEO &#8211; Diary of an Emacs tragic</title>
	<link>https://emacstragic.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">38469313</site>	<item>
		<title>Setting alternate hreflang in WordPress</title>
		<link>https://emacstragic.net/uncategorized/jbl-alternate-hreflang/</link>
					<comments>https://emacstragic.net/uncategorized/jbl-alternate-hreflang/#comments</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Thu, 02 May 2013 06:00:11 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[hreflang]]></category>
		<category><![CDATA[SEO]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=790</guid>

					<description><![CDATA[UPDATE 2013-05-03: After writing this I found out my approach was incorrect. I have since removed the code as it was not useful. Dan&#8217;s team was kind enough to point me to Virgin Australia&#8216;s site. If you inspect the source and search for hreflang, you&#8217;ll see how it should be done. /UPDATE After seeing the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>UPDATE 2013-05-03:<br />
After writing this I found out my approach was incorrect. I have since removed the code as it was not useful.<br />
Dan&#8217;s team was kind enough to point me to <a href="https://www.virginaustralia.com/au/en/">Virgin Australia</a>&#8216;s site. If you inspect the source and search for hreflang, you&#8217;ll see how it should be done.<br />
/UPDATE<br />
After seeing the excellent talk by <a title="Dan Petrovic on Google+" href="https://plus.google.com/111588754935244257268/posts">Dan Petrovic</a> at the Melbourne WordCamp, I went to find out more about the &lt;link rel=&#8221;alternate&#8221; hreflang=&#8221;en-AU&#8221; href=&#8221;http://somesite.com.au/&#8221; /&gt;. He has an article <a href="http://dejanseo.com.au/canonical-vs-hreflang/">describing</a> it. Essentially if you have multiple sites that have similar content (but not exactly the same) then you can instruct google that the sites serve different regions by using the rel=alternate hreflang=&#8221;en=gb&#8221; options for the link tag.<br />
A common scenario that you might find this useful would be in online stores where there is a different store for each country.<br />
eg. for site somesite.com.au you want a &lt;link&gt; tag like this:<br />
&lt;link rel=&#8221;alternate&#8221; hreflang=&#8221;en-AU&#8221; href=&#8221;http://somesite.com.au/&#8221; /&gt;<br />
and for somesite.com you might want a tag like this:<br />
&lt;link rel=&#8221;alternate&#8221; hreflang=&#8221;en-US&#8221; href=&#8221;http://somesite.com/&#8221; /&gt;<br />
and you want to remove the rel=”canonical” option too.<br />
I couldn&#8217;t find a plugin that would implement this in WordPress so I wrote one and put it up on github. Yoast does not have an option for this as far as I can tell.<br />
At some point I might put it up on wordpress.org too if it seems like there is interest in it.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/jbl-alternate-hreflang/feed/</wfw:commentRss>
			<slash:comments>10</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">790</post-id>	</item>
	</channel>
</rss>
