redirect 301 がうまくいきません

このQ&Aのポイント
  • Internal Server Error
  • The server encountered an internal error or misconfiguration and was unable to complete your request.
  • Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
回答を見る
  • ベストアンサー

redirect 301 がうまくいきません

redirect 301 がうまくいきません redirect 301 /public_html/ http://atopicdermatitis.digi2.jp/と記述した.htaccessファイルを /public_html/ .htaccessとしても下記のようになります。 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. と出ます。 http://allergy.6.ql.bz/からhttp://atopicdermatitis.digi2.jp/に引っ越しをしたのですが、index.htmlなどのすべてのページをリダイレクトしたいのですがどのように記述したらうまくいくのでしょうか? http://allergy.6.ql.bz/は/public_html/の中にhtmlファイルがありhttp://atopicdermatitis.digi2.jp/は/の下にあります。

質問者が選んだベストアンサー

  • ベストアンサー
回答No.5

No.4です。 >上記の二つの方法でも検索エンジンの順位も引き継げない可能性が高く、スパムサイト扱いされる可能性が高いということでよろしいでしょうか? スパムサイトとして扱われるかどうかまでは分かりませんが、検索エンジンの順位は引き継げないでしょうね・・。 それに、そのmetaタグは、ブラウザによって動作しない場合があるので・・・。 検索エンジンの順位を今後も引き継ぎたいのであれば、無料サイトではなく、きちんとしたサポートを期待できるサイトを探して、そこで構築するほうが良いかと思います。 ちなみにもっと言いますと、あなた自身のドメイン名を取得し、そのドメイン名を使わせてくれるサービス(サイト)を使うほうが良いかと。 もちろんお金はかかりますが・・。

htmlcss123
質問者

お礼

ありがとうございます。お忙しい中大変ありがとうございました。 引っ越しをすると検索順位は引き継げないのですか?ひどいですね。 グーグルにはそのようなサービスはないのですね。 .htaccessなら引き継げるのですか?

その他の回答 (5)

回答No.6

たびたび・・No.5です。 >引っ越しをすると検索順位は引き継げないのですか?ひどいですね。 >グーグルにはそのようなサービスはないのですね。 > >.htaccessなら引き継げるのですか? 一般的に、ドメイン名が変更になると検索順位はリセットされてしまいます。 (「ドメイン名が変更となる=全く違うサイト」という解釈される。当然の事だと思いますが・・。) google社に貢ぎ物をすれば、検索結果を上げてくれるかも知れませんが・・・。

htmlcss123
質問者

お礼

ありがとうございます。お忙しい中大変ありがとうございました。

回答No.4

No.3の回答者の方の回答に補足しますが、googleのサポートページに以下のような記述があります。 =====以下引用===== ただし、一部のブラウザではサポートされないため、ユーザーを混乱させる可能性があります。W3C では、このタグを使用しないよう推奨しています(英語)。Google では、サーバー サイドの 301 リダイレクトを使用することをおすすめしています。 ================= url : http://support.google.com/webmasters/bin/answer.py?hl=ja&answer=79812 上記URLの一番下のほうを参照してみてください。 W3Cで使用しないよう推奨しているということは、今後、そのmetaタグを使用しても、クロールされなくなる(そのmetaタグが無視される)可能性がありますので、要注意です。

htmlcss123
質問者

お礼

ありがとうございます。お忙しい中大変ありがとうございました。 <meta http-equiv="refresh" content="0 ; URL=http://a.jp/"> このメタタグを全ての旧ページの<head>~</head>間に入れれば新ページに移動します。 また、URL=を変更すれば旧ページの特定ページから特定ページへ移動可能です。 例えば旧tokusyu.htmlのページのメタタグを以下のようにすれば <meta http-equiv="refresh" content="0 ; URL=http://a.jp/">/t.html"> 上記の二つの方法でも検索エンジンの順位も引き継げない可能性が高く、スパムサイト扱いされる可能性が高いということでよろしいでしょうか?

  • wpwpwpw
  • ベストアンサー率38% (57/148)
回答No.3

.htaccessではありませんが <meta http-equiv="refresh" content="0 ; URL=http://atopicdermatitis.digi2.jp/"> このメタタグを全ての旧ページの<head>~</head>間に入れれば新ページに移動します。 また、URL=を変更すれば旧ページの特定ページから特定ページへ移動可能です。 例えば旧tokusyu.htmlのページのメタタグを以下のようにすれば <meta http-equiv="refresh" content="0 ; URL=http://atopicdermatitis.digi2.jp/tokusyu.html"> 新tokusyu.htmlに移動と云う形です。

htmlcss123
質問者

お礼

ありがとうございます。お忙しい中大変ありがとうございました。 <meta http-equiv="refresh" content="0 ; URL=http://a.jp/"> このメタタグを全ての旧ページの<head>~</head>間に入れれば新ページに移動します。 また、URL=を変更すれば旧ページの特定ページから特定ページへ移動可能です。 例えば旧tokusyu.htmlのページのメタタグを以下のようにすれば <meta http-equiv="refresh" content="0 ; URL=http://a.jp/">/t.html"> 上記の二つの方法ならアドセンスも検索エンジンの順位も引き継げるということでよろしいでしょうか?

回答No.2

No.1です。 規約を読んだところ、 >htaccess Limitおよび"AuthConfig"が設定可能です との事なので、Redirectは出来ないよう制限されているように思えます・・・。

htmlcss123
質問者

お礼

出来ないのですか!! それなら引っ越しをした人はいったいどうすればよいのでしょうか? サイトの検索順位などは放きするしかないのですか?

回答No.1

>More information about this error may be available in the server error log. エラーログの中にはどのようなエラーが記載されていますか?

htmlcss123
質問者

お礼

知識不足でレンサバのエラーログの見方が分かりません。 もしご存知でしたら教えてください。 ただ規約を見たところ新しい情報が見つかりました。 http://www.pf-x.net/pukiwiki/index.php?%A4%E8%A4%AF%A4%A2%A4%EB%BC%C1%CC%E4%A1%A7CGI%2CPHP%B4%D8%CF%A2#htaccess 下記のように書くようです /home/ユーザー名/public_html/cgi-bin Redirect 301 /home/allegy/public_html/ http://atopicdermatitis.digi2.jp/このままで大丈夫でしょうか?これをテキストファイルにコピペして.htaccessとすれば良いのでしょうか。このファイルはindexファイルと同じフォルダに入れれば良いのでしょうか? 半角スペースは301、public_html/の後に入れれば良いのですよね。jp/に/は入っていない方が良いのでしょうか サーバが不安定で今はつながっていません。

関連するQ&A

  • TurboLinuxでリダイレクトができない

    TurboLinuxで「.htaccess」を利用してURLリダイレクトができません。 下記のように記載してますが、「.htaccess」を登録したサイトにアクセスすると 「500 Internal Server Error」となります。 ----------------------------------------- Redirect permanent / http://www.****.jp ----------------------------------------- 記載方法が違うのであれば教えてください。

  • htaccessを使ってredirectさせたいのですが・・・

    今組んでいるプログラムで、「あるディレクトリにアクセスした時に別のCGIファイルへ自動的に転送させる」というような仕組みを使用したいと思っています。 使っているサーバはhtaccessが使えるので、htaccess内にRedirect関数を記述して転送させようとしているのですが、何度やっても自動転送がうまくできません。 具体的に言うと「index.html」にアクセスした時に「cgi-bin/index.cgi」というファイルに自動転送させたいのですが、index.htmlがそのまま表示されてしまうのです。 それで、index.htmlを削除してみると、今度は「403 Forbidden」エラーが起こってしまっています。 ちなみに、使っているサーバはWEBARENAです。 もうどうしたら解決するのか全然わからず困りはてています。 皆さまの知恵をお貸しください。よろしくお願い致します。

  • 内部サーバーエラーについて

    HPを作っていたとき内部サーバーエラーと出ました。 サーバーはhttp://www.pf-x.net/ エラーメッセージは、 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, w@pf-x.net and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. やったことは、エラーページを製作して、 .htaccessを入れたらだめになりました。 どういう意味か、また、対処法を教えてください。

  • 500 Internal Server Error

    http://iboard3.to/ で始まるURLのどのサイトでも 500 Internal Server Error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, info@iboard2.to and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. と表示され、見ることができません。 どうしたらよいですか?

  • mixiで動画をUPしたら・・・・

    mixiで動画をUPしたら・・・・ Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, mixi and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. というエラーが出たんですが、今になっても直りません。 どうすればよいですか?

  • 教えてgooサーバーエラー

    すみません 教えてgooでInternal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@ask01.goo.ne.jp and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. という表記が出てきます。 よく意味が分からないのですが、どのように対処すればよいのでしょうか よろしくお願いします

  • CGI(Perl)について、間違いがあればご指摘お願いします。

    http://www.geocities.jp/mu_how_know/defkaiseki.html これがcgi文章で、 http://www.geocities.jp/mu_how_know/defkaiseki2.html これがHTML文章です。 実行すると Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -------------------------------------------------------------------------------- Apache/2.0.54 (Win32) Server at 127.0.0.1 Port 80 と出てきてしまい、ダメです。 文法ミスが多分原因なので、間違いがあればご指摘ください;; 取り敢えず自分ではミスチェックしました。

    • ベストアンサー
    • Perl
  • 内部サーバーエラーについて

    検索エンジンロボットシミュレーター http://www.searchengineoptimization.jp/tools/search_engine_robot_simulator.html を使ってアドレスを入力して解析ボタンをクリックすると 以下の様なメッセージが出ます。 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webadmin@searchengineoptimization.jp and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. どのようにすれば、エラーが出ずに正確に解析できるのでしょうか? 以上宜しくお願いします。 --------------------------------------------------------------------------------

  • 続・メールの送信

    Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -------------------------------------------------------------------------------- Apache/2.0.39 Server at www.altoworld.com Port 80 こんな表示が出て、白紙でメールだけは届きます

    • ベストアンサー
    • CGI
  • あるHPにアクセスしてのエラー

    以下のエラーが出ました。これは、私の方のせいですかね?いきなり英語でエラーメッセージが出ても・・・ Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, あるHPのアドレス and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. どうしたらいいのでしょうか?