祭にっぽん
全国の祭り集合!
佐野写真館(あいらぶ富士宮)
へんぽらいの仕事とふるさと紹介
へんぽらい写真日記
管理人ブログです。
facebook 佐野雅則
facebookでお待ちしています。
へんぽらい
へんぽらい

Facebookページも宣伝

Twitterに投稿
Add to Google
Yahoo!ブックマークに登録
メインメニュー
ログイン
ユーザー名:

パスワード:


パスワード紛失

アーカイブ
AdSense
  • カテゴリ へんぽらい の最新配信
  • RSS
  • RDF
  • ATOM

へんぽらい日記 - 404file not found対策

404file not found対策

カテゴリ : 
へんぽらい
執筆 : 
admin 2018-6-29 1:06

レンタルサーバーが用意した404not foundの画面はこんなものでした。

以前xoopsで作っていたサイトが、データベースの管理に失敗して3つのサイト全部を新たに作り直す事になりました。xoopsでとも考えたのですが、何かと引っかかり断念しました。
それで新たにWordPressで再構築の最中です。

アクセス解析で気付いたのですが、以前のxoopsで作っていたページのURLがブックマークかリンクかで残っていて、そこから訪問する人がけっこう居るようです。
WordPressではトップページは同じURLですが、作り直したページは内容は同じでもURLが変わります。なので、せっかく訪問していただいても404not foundとなってしまいます。



ワードプレスでサイトを作るとそれがこんな感じになるのですが、目的とするページではないのでそのまま帰られてしまうんでしょうね。
もったいないと思います。
そこで、404not foundで代わりにメッセージと現在の目次が表示されるように工夫してみました。



表示されたのは目的のページでは無いけれど、目次を見れば目的のページがあれば見つかります。
無くても、興味を引くコンテンツがあれば覗いてもらえるのではと思います。

祭にっぽん
あいらぶ富士宮
富士宮囃子と秋祭り
この3つのサイトに同じように目次を表示して、直帰より滞留をしてもらうべくお膳立てをしています。

こういったことを積み上げリピーターになってもらう事が、サイトの隆盛に繋がると信じています。
  • コメント (0)
  • トラックバック (0)
  • 閲覧 (11160)

トラックバック

トラックバックpingアドレス トラックバックpin送信先urlを取得する

コメント一覧

Unknown Condition [8192]: Function ereg() is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3blog/class/category.class.php line 300
Unknown Condition [8192]: Function ereg() is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3blog/class/category.class.php line 300
Unknown Condition [8192]: Function ereg() is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3blog/blocks/blocks_archives.php line 99
Warning [PHP]: Parameter 1 to StdCache_Initialize::setForModule() expected to be a reference, value given in file core/XCube_Delegate.class.php line 356
Unknown Condition [8192]: Function ereg() is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3blog/class/category.class.php line 300
Unknown Condition [8192]: Function ereg() is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3blog/class/category.class.php line 300
Unknown Condition [8192]: Function ereg() is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3blog/class/category.class.php line 300
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file kernel/comment.php line 145
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file class/smarty/plugins/function.d3comment.php line 42
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3forum/include/comment_functions.php line 104
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3forum/include/comment_functions.php line 340
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3forum/include/common_functions.php line 159
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3forum/include/common_functions.php line 163
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3forum/include/main_functions.php line 313
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3forum/include/main_functions.php line 333
Unknown Condition [8192]: Assigning the return value of new by reference is deprecated in file /home/akimiya/henporai.net/xoops_trust/modules/d3forum/include/main_functions.php line 337