Skip to content

Instantly share code, notes, and snippets.

@keisuke2236
Last active May 15, 2020 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keisuke2236/6656136be5a4ce10cac610f6c73bbfa1 to your computer and use it in GitHub Desktop.
Save keisuke2236/6656136be5a4ce10cac610f6c73bbfa1 to your computer and use it in GitHub Desktop.
【2017年度版】Webエンジニアでも最低限押さえておきたい、SEO施策のまとめと実装 ref: https://qiita.com/rorensu2236/items/a2cd209af4dda59557a5
RewriteEngine On
RewriteRule http://phocase.jp/([0-9]+)/$ http://phocase.jp/?color=$1 [L,NC]
<h1>
<img src="/images/iphone6_white.jpg" alt="女性に人気の白いiPhone6スマホケース一覧" />
</h1>
<head>
...
<link rel="alternate" href="http://sp.example.com/" />
...
</head>
<head>
<title>ページタイトル</title>
</head>
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
<head>
...
<link rel="canonical" href="http://www.example.com/" />
...
</head>
require_once './publisher.php' ;
$publisher = new Publisher('http://pubsubhubbub.appspot.com/');
$publisher->publish_update('http://example.com/article/1');
User-Agent: *
Disallow: /*/matome/
Disallow: /ajax/*.json
Disallow: /image/
Disallow: /search
<section itemscope itemtype="http://schema.org/Game">
<h1>モンスターハンターゲームシリーズ</h1>
<span itemprop="name">モンスターハンターダブルクロス</span>
<p itemprop="description">6大メインモンスターがいる最新モンハンシリーズ</p>
<div itemprop="author" itemscope itemtype="http://schema.org/Corporation
">
<p itemprop="name">CONAMI</p>
<p itemprop="email">example@conamikan.jp</p>
</div>
</section>
<head>
...
<link rel="canonical" href="http://example.com/" />
...
</head>
「URLの長さはランキングには関係しないがURLの発見に 役立つことがある」
http://example.com/iphone7?page=1
http://example.com/iphone7?color=red&page=2
http://example.com/iphone7?page=3
http://example.com/iphone7?page=4
<img src="puppy.jpg" alt=""/>
<img src="puppy.jpg" alt="子犬 犬の赤ちゃん
小さな子犬 レトリーバー ラブラドール ウルフハウンド
セッター ポインター ジャックラッセル テリヤ
ドッグ フード ドッグフード 安い 子犬の餌"/>
https://phocase.jp/iphone7/cute/?color=3&material=3
<img src="puppy.jpg" alt="子犬"/>
<img src="puppy.jpg" alt="持ってこいをするダルメシアンの子犬">
//page=の表記
http://example.com/iphone7?color=red&page=1
http://example.com/iphone7?color=red&page=2
http://example.com/iphone7?color=red&page=3
http://example.com/iphone7?color=red&page=4
//p= と省略した表記
http://example.com/foo.html
http://example.com/foo.html?p=2
http://example.com/foo.html?p=3
//URLの一部に含まれる表記
http://example.com/foo/1/
http://example.com/foo/2/
http://example.com/foo/3/
<meta name=”robots” content=”noindex”>
https://phocase.jp/iphone7/?color=3&material=3&category=cute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment