seo list
keyword density
outbound/inbound links
img alt tags
page titles
H1/H2 contents
long URL segmentation and applicability
Table of Contents
1.website seo for spider
1.create sitemap
1.1 5000 items /page
1.2 add ETag: "1d4724019fbedee"
2. create robots.txt
3.keyword
Where should I include in keywords in an article?
1) Add keyword in page title (this is 100% must do).
(2) Add keyword in Meta description.
(3) Add a keyword in your target page's URL.
(4) Add a keyword in an H1 tag.
(5) Add related keywords or synonyms in h2-h3 tags/
(6) Drop the keyword in the first 100 words (Google can understand the topic of the page fast).
2. website page url
1-3 class(至多三级页面)
15 SEO Best Practices for Structuring URLs
page <html>
add
<html lang="en">
设计聚合页面
聚合页面容易被搜索引擎搜录
page Title seo
change
<title>.NET Core - iaspnetcore.com</title>
to
<title>Blog posts tagged with ".NET Core" - iaspnetcore.com</title>
聚合页面容易被搜索引擎搜录
data
src\Libraries\Nop.Core\Domain\Seo\SeoSettings.cs
namespace Nop.Core.Domain.Seo
{
/// <summary>
/// SEO settings
/// </summary>
public class SeoSettings : ISettings
{
/// <summary>
/// Page title separator
/// </summary>
public string PageTitleSeparator { get; set; }
/// <summary>
/// Page itle SEO adjustment
/// </summary>
public PageTitleSeoAdjustment PageTitleSeoAdjustment { get; set; }
/// <summary>
/// Default title
/// </summary>
public string DefaultTitle { get; set; }
/// <summary>
...
}
output
src\Presentation\Nop.Web\Themes\RootTheme\Views\Shared\_Root.Head.cshtml
<html>
<head>
<title>@Html.NopTitle(true)</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
Blog posts tagged with '.NET Core'
https://www.iaspnetcore.com/blog/tag/.NET%20Core
change
change
//old
Html.AddTitleParts((!String.IsNullOrEmpty(Model.PagingFilteringContext.Tag) ? Model.PagingFilteringContext.Tag : T["PageTitle.Blog"].Value)); //old ,seo below
to
//new
Html.AddTitleParts((!String.IsNullOrEmpty(Model.PagingFilteringContext.Tag) ? string.Format(T["Blog.TaggedWith"].Value, Model.PagingFilteringContext.Tag) : T["PageTitle.Blog"].Value));
output
<title>.NET Core - iaspnetcore.com</title>
to
<title>Blog posts tagged with ".NET Core" - iaspnetcore.com</title>
search
Add <link rel="search" type="application/opensearchdescription+xml" href="http://search.iaspnetcore.com/search.xml" title="iaspnetcore.com">
/src/Presentation/Nop.Web/Themes/BootStrap4/Views/Home/Index.cshtml
@section header
{
<link rel="search" type="application/opensearchdescription+xml" href="http://search.iaspnetcore.com/search.xml" title="iaspnetcore.com">
}
/src/Presentation/Nop.Web/Themes/BootStrap4/Views/Home/Index.cshtml
<?xml version="1.0" encoding="utf-8" ?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<InputEncoding>utf-8</InputEncoding>
<ShortName>iaspnetcore.com</ShortName>
<Description>全球文档垂直搜索</Description>
<Image type="/favicon.ico">favicon</Image>
<Url type="text/html" template="http://search.iaspnetcore.com/search?query={searchTerms}"/>
</OpenSearchDescription>
page <head> </head>
1.添加meta property=og标签方便社交媒体进行分享传播
2.添加<link rel="canonical" href="https://html5-templates.com/" />表示唯一网址,否则被搜索引擎误判为重复网页降低权重。
3.添加与手机浏览网页相关的标签 详细:HTML5移动端手机网站开发流程 https://blog.csdn.net/yuzhilin1/article/details/50804827
网页优化seo-介绍HTML的文档头部<head>的各种标签
网页优化SEO-HTMl中Meta标签详解以及meta property=og标签含义
page content
1.网页内容采用语义化HTML5标签,使机器能看懂
2.网页内容采用微数据结构http://schema.org,使机器能看懂
title H1
html5 tag
image title alt etc.
create update time
meta describe
share link
内联文章加上网站域名:Integrating TinyMCE Mobile in ASP.NET Core
3. Speed
1.body size
minify js css
How to use Bundle&Minifier and bundleconfig.json in ASP.NET Core
minify Html
HTML minification using WebMarkupMin in ASP.NET Core
2. request times
merg js css to one
How to use Bundle&Minifier and bundleconfig.json in ASP.NET Core
3.add ETag: "1d4724019fbedee"
4.cdn
5.static resource alone
6.cookie
7.nginx cache static resource
8.cache home page
9.cache taghelper
10.cache footer menu
域名
四个域名重定向为1个域名。否则会被搜索引擎视为4个独立的网站,不利于增加权重。
[origal]SEO: Optimizing your ASP.NET core MVC site for Search
publish
1.favicon
favicon generator online
https://favicon.io/favicon-generator
src\Presentation\Nop.Web\wwwroot\favicon.ico