<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Basic SEO for Web Developers Part 2]]></title><description><![CDATA[<p dir="auto"><strong>1. Robots Exclusion Standard</strong></p>
<ul>
<li><strong>Robots.txt</strong></li>
</ul>
<pre><code>Location: https://example.com/robots.txt

User-agent: googlebot
Disallow: /example.html
Sitemap: https://example.com/sitemap.xml

##More information at http://www.robotstxt.org/robotstxt.html
</code></pre>
<ul>
<li><strong>X-Robots</strong></li>
</ul>
<pre><code class="language-markdown">Location: Sent in the HTTP headers

X-Robots-Tag: noindex

##More information at http://noarchive.net/xrobots/
</code></pre>
<ul>
<li><strong>Meta Robots</strong></li>
</ul>
<pre><code>Location: In the html &lt;head&gt;

&lt;meta name="ROBOT NAME" content="ARGUMENTS" /&gt;

##More information athttp://www.robotstxt.org/meta.html
</code></pre>
<ul>
<li>
<p dir="auto"><strong>Robots Best Practices</strong></p>
<ol>
<li>Only Meta Robots and X-Robots remove URLs from search results</li>
<li>Don't block CSS or JavaScript files with robots.txt</li>
</ol>
</li>
<li>
<p dir="auto"><strong>Arguments can be:</strong></p>
<ol>
<li>Nofollow (do not follow links)</li>
<li>Noindex (do not index)</li>
<li>Noarchive (do not archive)</li>
<li>NoODP (Do not show Open Directory Project description)...Or combined (noindex, nofollow)</li>
<li>If the robots &lt;META&gt; tag is not defined, the default is "INDEX,FOLLOW"</li>
</ol>
</li>
</ul>
<p dir="auto"><strong>2. Important User Agents</strong></p>
<ul>
<li>
<p dir="auto">For robots.txt, robots meta tags, and X-Robots-Tag</p>
<pre><code class="language-markdown">Googlebot (can be used as default for most Google crawlers)
Googlebot-News
Googlebot-Image
AdsBot-Google
Baiduspider
FacebookExternalHit
Slurp
Mediapartners-Google (Mobile Adsense) or Mediapartners
Googlebot-Mobile
Googlebot-Video
Bingbot
Yandexbot
Applebot
Twitterbot
Rogerbot
</code></pre>
</li>
</ul>
<p dir="auto"><strong>3. Sitemap Syntax</strong></p>
<ul>
<li>
<p dir="auto">XML Sitemaps</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt;
    &lt;url&gt;
        &lt;loc&gt;https://example.com/&lt;/loc&gt; 
        &lt;lastmod&gt;2015-01-01&lt;/lastmod&gt; 
        &lt;changefreq&gt;monthly&lt;/changefreq&gt; 
        &lt;priority&gt;0.9&lt;/priority&gt;
    &lt;/url&gt; 
&lt;/urlset&gt;
</code></pre>
</li>
<li>
<p dir="auto">Sitemap Index File</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt;
    &lt;sitemap&gt;
        &lt;loc&gt;https://example.com/sitemap1.xml.gz&lt;/loc&gt;
        &lt;lastmod&gt;2015-01-01T18:23:17+00:00&lt;/lastmod&gt;
    &lt;/sitemap&gt;
    &lt;sitemap&gt;
        &lt;loc&gt;https://example.com/sitemap2.xml.gz&lt;/loc&gt;
        &lt;lastmod&gt;2015-01-01&lt;/lastmod&gt;
    &lt;/sitemap&gt;
&lt;/sitemapindex&gt;
</code></pre>
</li>
<li>
<p dir="auto">Default Locations Can Be:</p>
<pre><code class="language-markdown">https://example.com/sitemap.xml
https://example.com/sitemap.xml.gz
https://example.com/sitemap.gz
</code></pre>
</li>
<li>
<p dir="auto">Other Common Sitemap Types:</p>
<pre><code class="language-markdown">Mobile
News
Image
Video
</code></pre>
</li>
</ul>
<p dir="auto"><strong>4. Pagination</strong></p>
<ul>
<li>
<p dir="auto">Use rel="next" andrel="prev" in the &lt;head&gt; sectionto indicate the relationship between paginated URLs</p>
</li>
<li>
<p dir="auto"><strong>First Page</strong> - <a href="https://example.com/article" target="_blank" rel="noopener noreferrer nofollow ugc">https://example.com/article</a></p>
<pre><code>&lt;link rel="next" href="https://example.com/article?pg=2"&gt;
</code></pre>
</li>
<li>
<p dir="auto"><strong>Second Page</strong> - <a href="https://example.com/article?pg=2" target="_blank" rel="noopener noreferrer nofollow ugc">https://example.com/article?pg=2</a></p>
<pre><code>&lt;link rel="prev" href="https://example.com/article"&gt;
&lt;link rel="next" href="https://example.com/article?pg=3"&gt;
</code></pre>
</li>
<li>
<p dir="auto"><strong>Final Page</strong> - <a href="https://example.com/article?pg=3" target="_blank" rel="noopener noreferrer nofollow ugc">https://example.com/article?pg=3</a></p>
<pre><code>&lt;link rel="prev" href="https://example.com/article?pg=2"&gt;

#More information at http://mz.cm/rel-next
</code></pre>
</li>
</ul>
<p dir="auto">I'll post next part asap.<br />
Thank you all for your time in reading this!</p>
]]></description><link>https://lankadevelopers.lk/topic/32/basic-seo-for-web-developers-part-2</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 04:47:06 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/32.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Dec 2018 18:08:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Basic SEO for Web Developers Part 2 on Wed, 12 Dec 2018 05:47:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/35">@fern</a>  &amp; <a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/33">@rachitha</a> ur welcome :smiley:</p>
]]></description><link>https://lankadevelopers.lk/post/176</link><guid isPermaLink="true">https://lankadevelopers.lk/post/176</guid><dc:creator><![CDATA[dev_lak]]></dc:creator><pubDate>Wed, 12 Dec 2018 05:47:53 GMT</pubDate></item><item><title><![CDATA[Reply to Basic SEO for Web Developers Part 2 on Wed, 12 Dec 2018 05:46:19 GMT]]></title><description><![CDATA[<p dir="auto">Thank you...</p>
]]></description><link>https://lankadevelopers.lk/post/175</link><guid isPermaLink="true">https://lankadevelopers.lk/post/175</guid><dc:creator><![CDATA[rachitha]]></dc:creator><pubDate>Wed, 12 Dec 2018 05:46:19 GMT</pubDate></item><item><title><![CDATA[Reply to Basic SEO for Web Developers Part 2 on Mon, 10 Dec 2018 17:34:56 GMT]]></title><description><![CDATA[<p dir="auto">Nice post... 😍</p>
]]></description><link>https://lankadevelopers.lk/post/172</link><guid isPermaLink="true">https://lankadevelopers.lk/post/172</guid><dc:creator><![CDATA[fern]]></dc:creator><pubDate>Mon, 10 Dec 2018 17:34:56 GMT</pubDate></item><item><title><![CDATA[Reply to Basic SEO for Web Developers Part 2 on Mon, 10 Dec 2018 04:37:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/27">@root</a>  ur welcome, sure i'll link</p>
]]></description><link>https://lankadevelopers.lk/post/171</link><guid isPermaLink="true">https://lankadevelopers.lk/post/171</guid><dc:creator><![CDATA[dev_lak]]></dc:creator><pubDate>Mon, 10 Dec 2018 04:37:48 GMT</pubDate></item><item><title><![CDATA[Reply to Basic SEO for Web Developers Part 2 on Mon, 10 Dec 2018 02:10:24 GMT]]></title><description><![CDATA[<p dir="auto">Thnx bro. can you link this part with previous part.</p>
]]></description><link>https://lankadevelopers.lk/post/169</link><guid isPermaLink="true">https://lankadevelopers.lk/post/169</guid><dc:creator><![CDATA[root]]></dc:creator><pubDate>Mon, 10 Dec 2018 02:10:24 GMT</pubDate></item></channel></rss>