Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL書き換えを削除するにリダイレクトまたはダブルまたは複数のスラッシュ( / / )でのURL

Google search engine spider or crawler Googlebot is one of the most advanced and finest content grabber that extracts most if not all of any data of the Internet and World Wide Web, regardless of whether such contents or web pages are intended for public visitors. Google検索エンジンのクローラGooglebotは、スパイダーまたは1つのコンテンツで最も先進的かつ最高のグラバーを抽出していない場合はほとんどのすべての任意のデータを、インターネットやワールドワイドウェブは、このような内容かどうかに関係なく、ウェブページまたは公共の来場者が意図しています。

As such, some webmasters may notice that Google is crawling and indexing web pages which are not supposed to be existed in the first place.このように、いくつかのウェブマスター年5月に注意してGoogleは、ウェブページのクロールとインデックス登録されていないはずの最初の場所に存在します。 One such instance is incorrect and wrong URL link location, such as when double slash, triple slash or multiple forward slashes been formed as part of the URL as extra slash or slashes been appended or added to the web page URLs. 1つのインスタンスが正しくないとこのような誤ったURLリンクの場所は、スラッシュのようなときにダブル、トリプルスラッシュ、または複数のスラッシュに形成されたの一環として、 URLに付加された余分なスラッシュやスラッシュまたは追加されたウェブページのURLを指定します。 For example, a page with URL of http://www.domain.com/index.php is also been crawled by Google as http://www.domain.com//index.php, or sometimes even http://www.domain.com///index.php.たとえば、あるページのURLをhttp://www.domain.com/index.phpでもGoogleにクロールされhttp://www.domain.com//index.phpか、または時にはhttp:// www.domain.com///index.phpです。

The web crawl and spider indexing by Google can be tracked and traced in Apache or web server access logs.インデックスに登録され、ウェブをクロールとGoogleのスパイダーが追跡され、追跡させ、 Apacheやウェブサーバーのアクセスログです。 And these double slash, triple slash, quadruple or more slash URLs can show up in the Google search results, and potentially can cause duplicate content issue , and worse, penalty that makes the site vanishing from Google search results listing or been pushed into supplemental results with low ranking.スラッシュと、これらのダブル、トリプルスラッシュ、 URLの4倍以上のスラッシュが表示されるまでに、 Googleの検索結果、および潜在的に重複したコンテンツが原因で問題を調査し、さらに悪いことに、ペナルティーが失われつつあるため、 Googleの検索結果からサイトリスティングまたは補足されているとの結果を性の低いランキングです。

The reason for additional slashes in the URL is unknown, and seems like it only happens on Google search engne.スラッシュの理由を追加すると、 URLは不明ですが、そうだとGoogleの検索engneにのみ発生します。 One possibility is visitors or other websites type or put incorrect backlink (external link), which picked up by ultra-sensitive 1つの可能性は、来場者や他のウェブサイトに誤って入力するか、またはバック(外部リンク)をナンパされる超高感度 Googlebot or Mediapartners-Google mediapartners - GoogleのGooglebotのか (Google AdSense crawler which also contribute website indexing of Google Search). ( Google AdSenseのクローラにも貢献するウェブサイトのインデックス登録をGoogle検索) 。 But one thing is for sure - when one page with wrongful double or a few adjacent slashes been indexed, entire web pages within the website may be prone to such error too.しかし、一つだけは確か-ときに1つのページに不当な二重またはごく少数の隣接するスラッシュインデックスに登録され、ウェブページ内のウェブサイト全体の5月にこのようなエラーが発生する傾向が判明しました。

To fix and resolve the double slash or multiple slash URLs issue is pretty simple.を修正すると解決するにダブルスラッシュ、または複数のスラッシュURLの問題はかなり簡単です。 Simply create a mod_rewrite directive in .htaccess code or Apache httpd.conf configuration file to rewrite or redirect permanently (status 301) all URL found to be contained two or more adjacent or trailing slashes to its proper and valid URL with just a single slash (/) instead or // or /// or even //// or more within the URL address, create a .htaccess file in the root directory (normally public_html) for the website with the following URL rewriting and redirection directive (if .htaccess already exists, just add in the code on top). mod_rewriteのディレクティブを作成するだけです。 htaccessのコードやApacheのhttpd.confに設定ファイルを書き換えるまたは永久にリダイレクト(ステータス301 )に含まれるすべてのURLが見つかりましたが、末尾のスラッシュ2つ以上の隣接またはその適切かつ有効なURLだけ、 1つのスラッシュ( / )の代わりに、 / /または/ / /またはさえ/ / / /または他の内のURLアドレスを作成する。 htaccessファイルのルートディレクトリ(通常はpublic_htmlの)は、ウェブサイトにリダイレクトし、次のURLの書き換えと指令(場合です。 htaccessのが既に存在する場合は、上に追加されたコード)です。

# Remove multiple slashes anywhere in URL #複数のスラッシュの任意の場所をURLを削除
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ rewritecond % ( request_uri ) ^(.*)//(.*)$
RewriteRule . rewriteruleです。 %1/%2 [R=301,L] % 1 / % 2 [研究= 301 、]

The above redirection or URL rewrite method will parse the complete URL section on the part after the domain name, and will change each part of double slash to single slash (and thus able to handle more than 2 slashes in URL too).書き換え、上記のリダイレクションまたはメソッドは、完全なURLを解析するセクションを参照して、ドメイン名の後の部分、および各部分が変更さシングルダブルスラッシュをスラッシュ(それゆえに扱うことができません2を超えるURLをスラッシュでも) 。 For administrators who want to more efficient rewrite command, use the following code, which can only be used on .htaccess file.より効率的に管理したい書き換えるwhoコマンドは、次のコードを使用することができるのみで使用されています。 htaccessファイルです。

# Remove multiple slashes after domain #を削除した後、複数のスラッシュドメイン
RewriteRule ^/(.*)$ http://www.domain.com/$1 [R=301,L] rewriterule ^/(.*)$ http://www.domain.com/ $ 1 [研究= 301 、]

Replace domain name accordingly.ドメイン名に置き換えてください。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これは、機械翻訳ページで提供"現状有姿"を保証します。 Machine translation may be difficult to understand.機械翻訳を理解するのは難しいかもしれません。 Please refer toを参照してください original English articleオリジナルの英語記事索引 whenever possible.いつ可能です。

Share and contribute or get technical support and help atを共有して貢献や技術サポートとヘルプを得る My Digital Life Forums 私のデジタルライフフォーラム .です。



2 Responses to “Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL” 2つの応答を"二重リダイレクトや書き換えを削除する、または複数のスラッシュ( / / )でのURL "

  1. Tiger SEOタイガーソ
    July 29th, 2008 19:33 2008年7月29日19:33
    1

    Thanks a lot, a friend ask me how to remove that and we find the solution hereどうもありがとう、依頼する友人に送る私と私たちを削除する方法を見つけるの解決策について : )

  2. jeffb
    August 18th, 2008 03:00 2008年8月18日03:00
    2

    I am sorry but this causes trouble with IE 8 web slicing by breaking it, and only works in the root directory.ごめんしかし、これが原因でトラブルを打ち破ってすなわち8ウェブスライスして、のルートディレクトリにのみ動作します。

    All sub directory listings will get triple slashes and expose server side includes, from the new perl hacks available.すべてのサブディレクトリのリスティングは、サーバー側で取得トリプルスラッシュと暴露が含まれ、新しいPerlのhacksから入手可能です。

    Warning:警告:

    If you use any password protected logins, do not include this in your htaccess mod rewrite.任意のパスワードで保護さのログイン情報を使用する場合は、これを含むことはできません。 htaccessのmodして書き換える。

Leave a Reply残して返信

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> これらのタグを使用することができます: <aのhref=のtitle= <abbrのtitle= <blockquote cite=""> <cite> <acronymのtitle= <b>ダウンロードの<code> <デル日時= " " >の<em> <i>て<strike> <strong> <q cite="">

Subscribe without commenting登録なしのコメント


Custom Search

New Articles新しい記事

Incoming Search Terms for the Article検索用語を受信するには

mydigitallife double slash mydigitallifeダブルスラッシュ - - apache multiple forward slash //// Apacheの複数のフォワードスラッシュ/ / / / - - Rewrite redirect 書き換えリダイレクト - - htaccess remove double slashes htaccessを削除]をダブルスラッシュ - - rewrite double slash 書き換えダブルスラッシュ - - redirect rewrite リダイレクト書き換える - - redirect remove trailing slash 末尾にスラッシュリダイレクトを削除 - - double slashes in url スラッシュでURLをダブル - - duplicate slash in URL remove 重複するURLのスラッシュを削除する - - mod_rewrite double-slash mod_rewriteの2重のスラッシュ - - htaccess double slashes htaccessをダブルスラッシュ - - htaccess redirect from double directory htaccessのリダイレクトをダブルディレクトリ - - apache rewrite redirect double slashes Apacheの書き換えリダイレクトをダブルスラッシュ - - mod_rewrite double slash mod_rewriteのダブルスラッシュ - - multiple url rewrite htaccess htaccessの複数の書き換え - - mod rewrite double slash mod書き換えるダブルスラッシュ - - php strip forward slashes PHPのストリップスラッシュ - - php remove forward slashes スラッシュPHPの削除 - - extra slash in URL 余分なスラッシュでのURL - - rewrite remove slashes スラッシュ書き換えを削除 - - htaccess redirect slash htaccessのリダイレクトスラッシュ - - double slash in url ダブルスラッシュでのURL - - remove double slash 削除]をダブルスラッシュ - - forward url with double slash to url with single slash 進むURLをダブルスラッシュをURLに1つのスラッシュ - - apache rewrite multiple trailing slashes 複数のApacheの書き換え、末尾のスラッシュ - - htaccess remove slashes htaccessを削除するスラッシュ - - mod rewrite trailing forward slash mod書き換えるの末尾にスラッシュ - - htaccess remove trailing slash htaccessの末尾にスラッシュを削除 - - url with more than a slash スラッシュのURLを超える - - mod_rewrite multiple slashes mod_rewriteの複数のスラッシュ - - remove double slashes 削除]をダブルスラッシュ - - Slashes in URL スラッシュでのURL - - htaccess remove exe from url htaccessのエグゼよりURLを削除 - - apache redirect strip trailing slash Apacheのリダイレクトストリップ末尾にスラッシュ - - apache redirect remove trailing slash Apacheのリダイレクト末尾にスラッシュを削除 - - how to remove the last slash in url using apache での最後のスラッシュを削除する方法についてのURLを使用してApacheの - - htaccess redirect remove www htaccessのリダイレクトを削除www - - php remove forward slash スラッシュPHPの削除 - - mod rewrite remove double slashes mod書き換え削除をダブルスラッシュ - - mod_rewrite strip trailing slash mod_rewriteの末尾にスラッシュストリップ - - apache double slash Apacheのダブルスラッシュ - - rewrite remove double slash 書き換え削除をダブルスラッシュ - - apache rewrite slash multi Apacheの書き換えスラッシュマルチ - - redirect a url to my website? のURLを自分のサイトにリダイレクトするか? - - php strip multiple slashes PHPのストリップ複数のスラッシュ - - redirect "//" double slash リダイレクト" / / "ダブルスラッシュ - - rewrite address bar アドレスバーに書き換える - - .htaccess redirect multiple pages 。 htaccessを複数のページにリダイレクト - - duplicate content redirect index.php?a index.phpを重複したコンテンツにリダイレクトですか? - - htaccess Remove trailing slash at the end htaccessの末尾にスラッシュの最後に削除する - -