※この記事を読むのに必要な時間は約 3 分です。 前回、ホームページアドレスをWWWありに統一する方法をまとめましたが、今回も同じくアドレスについてです。 index.html(またはindex.htm)のあり、なしを統一する方法をまとめます。 「index.html」のあり、なしとはどういうことかというと、 http://www.soloweb.jp/index.html http://www.soloweb.jp/ この2つのアドレスは、 wwwありの(http://www.soloweb.jp/)、wwwなしの(http://soloweb.jp/)の考えと同じように index.htmlがあり、なしも 「別のページ」だと検索ロボットは判断しています。 リンクが分散されますので統一が必要です。 ホームページを見るユーザー(お客様)視点では アドレスは短く分かりやすいのがいいので in
yahooなどのページをPCとiPhoneで見るときで、 ページが異なっている。 同じURLでもPCのブラウザで見る時と、 スマートフォンのブラウザで、見る時で、 違うページが表示されるようにする設定。 ■あなたのサーバのwwwroot以下のファイルの構成を次のようにします。 .htaccess というファイルを作り、wwwroot直下に設定します。 PC用の最初のページを、wwwroot直下に作ります。 スマートフォン用のページを、wwwroot→i の下に作ります。 iの中のファイル名もindex.htmlにします。 PC用のページは、wwwroot直下に作っていきます。 スマートフォン上のページは、iフォルダの中に作っていきます。 ■.htaccessに次のコードを記入します。 RewriteEngine On # スマートフォンへの分岐設定 RewriteCond %{HTTP_U
今回は、Webサイトやサービスをメンテナンス中にする場合に、どのURLにアクセスしても「メインテナンス中です」の画面を出す正しいやり方を、人間にも検索エンジンにも適切にする作法を主眼に解説します。 この週末の土曜深夜~日曜早朝にかけて、データセンターの設備メインテナンスのため、Web担を含むインプレスグループのほとんどのWebサイトが、どのURLにアクセスしても「メンテ中です」という表示になっていました。 なのですが、その実装がちょっと気になったので、「正しいメンテナンス画面の出し方」を説明してみます。 ※2010-01-16 Retry-Afterを指定するHeaderの指定を修正しました(コメント参照) ※2009-06-17 RewriteCondから [NC] 条件を削除しました(コメント参照) ※2009-06-16 Retry-Afterの記述をGMTに変更しました(コメント参
.htaccessを使用して、他のサイトが画像などのファイルを無許可で使用するのを禁止する方法をThe Web Squeezeから紹介します。 Stop Image Hotlinking with .htaccess 「.htaccess」に、下記を記述します。 ※必要の無い箇所は、削除・修正して使用してください。 ※「.htaccess」を修正する場合は、必ずバックアップをしてください。 ※有効範囲は、設置ディレクトリの配下です。 <textarea name="code" class="html" cols="60" rows="5"> #Stop Image Hotlinking RewriteEngine on RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC] RewriteCond %{HTT
SEO以前の問題のひとつが、wwwのありとなしの両方でインデックスされるという不都合である。 これは、世界中で随時、蒸し返されている問題でもある。 wwwありとなしでは、違うサイトと認識される 論より証拠。 http://www.hyperposition.com/ link:http://www.hyperposition.com/ - Google 検索 http://hyperposition.com/ link:http://hyperposition.com/ - Google 検索 それぞれをブラウザで表示して、PageRankとバックリンクを確認してみて欲しい。 wwwありの方はPageRankは5で、バックリンクもあるが、wwwなしの方は、PageRankが表示されず、バックリンクもない。 つまり、wwwありとなしと、違うサイトとして検索エンジンには認識されるということであ
リダイレクト Fromにサイトパスを入力、ToにURLを入力 301 Moved Permanently 恒久的に移動 From: To: From: To: From: To: 302 Moved Temporarily 一時的に移動 From: To: From: To: From: To:
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く