SEO Friendly Rewrite Method to Move Website URL From Subdirectory to Root Parent Folderソフレンドリー書き換えるメソッドのサブディレクトリに移動するウェブサイトのURLから親フォルダをルート
You have set up your site, blog such as WordPress, Drupal, LiveJournal, or content management system such as Joomba and Mambo nicely at URL link such as http://www.domain.com/mylovelysite, and get decent traffic to the web site.お客様のサイトを設定すると、ブログなど、 WordPress 、プロのDrupal 、ライブか、またはコンテンツ管理システムなどをきれいにURLリンクjoombaとマンボなどhttp://www.domain.com/mylovelysite 、およびウェブのトラフィックを取得ディーセントサイトです。 Now in the reorganization exercise, you decide to move the site from sub-directory to the parent folder, properly at site’s root location instead.現在、再編演習では、サイトにアクセスすることに決めたのサブディレクトリに移動して、親フォルダを、適切な場所でのサイトのルートの代わりにします。 Moving the site to another folder or root folder will break all links and backlinks referenced to your website.別のフォルダに移動するには、サイトのルートフォルダまたはすべてのリンクとは、ブレークバックをお客様のウェブサイトで参照します。 If these broken links are not handled and redirected properly, there will be a lot of 404 page not found error, potentially drive away visitors, or in worst case, affect and lower the search engine ranking position (SERP).壊れたリンクがない場合、これらの処理を適切にリダイレクトさになり、多くの404ページが見つかりませんエラーが発生、潜在的に訪問ですか、または、最悪の場合、下部には検索エンジンのランキングに影響を与えると位置( serp ) 。
The best way to manage the change of site’s URL due to movement of directory location is by using redirection feature provided by mod_rewrite module in Apache HTTPD web server.する最良の方法を管理するサイトのURLの変更のために運動のリダイレクト機能を使用してディレクトリの場所が提供されてmod_rewriteモジュールのApache Webサーバーのhttpdです。 Most web hosts using Apache web server supports mod_rewrite redirect by default, and can implement this trick with ease.ほとんどのウェブのホストをサポートしてmod_rewrite Apache Webサーバーにリダイレクトを使用してデフォルトでは、このトリックを簡単に実装することです。 Else you will need to enable and turn on mod_rewrite module.ほかする必要があります。 mod_rewriteのモジュールを有効にして電源をオンにします。
To redirect from a subdirectory or sub-folder to root directory, add the following line of text towards the top of .htaccess file located in the sub-directory to redirect all requests into that folder will be redirected to new location (ie root) properly.サブディレクトリにリダイレクトするからのルートディレクトリまたはサブフォルダを、次の行のテキストを追加してに向かってトップへ。 htaccessファイルのサブディレクトリに位置し、すべての要求をそのフォルダにリダイレクトされる新しい場所にリダイレクトされる(つまりルート)を正しくです。 If the .htaccess file does not exist, create one.の場合、 。 htaccessファイルが存在しない場合は、 1つ作成します。
<IfModule mod_rewrite.c> <ifmodule mod_rewrite.c>
RewriteEngine On RewriteEngine on経験上、
RewriteBase / rewritebase /
RewriteRule ^mylovelysite/(.*)$ /$1 [R=301,NC,L] rewriterule ^ mylovelysite /(.*)$ / $ 1 [研究= 301 、ノースカロライナ、左]
</IfModule> < / ifmodule >
Replace mylovelysite in the forth line above with the directory name on your website’s URL. mylovelysiteは、上記記載の行に置き換えますのディレクトリ名をお客様のウェブサイトのURLです。 These line in .htaccess will redirect requests for the /mylovelysite sub-directory to the root directory by stripping “mylovelysite/” out of the URL.これらの行をします。 htaccessの要求にリダイレクトは、 / mylovelysiteのサブディレクトリに移動し、ルートディレクトリを剥奪した" mylovelysite / "アウトオブしてください。 For example, a visit to http://www.domain.com/mylovelysite/index.html will get redirected to http://www.domain.com/index.html, instead of returning an 404 error.たとえば、取得を訪問するにリダイレクトさhttp://www.domain.com/index.html http://www.domain.com/mylovelysite/index.htmlは、帰国する代わりに404エラーが発生します。 This is useful for visitors who come to your site via bookmark or favorite, or those find your web pages via search engines that haven’t re-crawled, re-spidered and refreshed with the new URLs in their search indexes in the initial days after moving.これはお役にたちましたwho来るをあなたのサイトに訪問者経由でブックマークやお気に入りのか、またはそれらの検索エンジン経由でお客様のウェブページに検索されていない再クロールすると、再spideredないとリフレッシュするには、新しいURLを検索インデックスに登録した後の最初の日中に移動します。
However, the movement will still likely to affect your site’s search engine rankings.しかし、その運動に影響を及ぼす可能性は、引き続きお客様のサイトの検索エンジンのランキングです。 The rewrite rules above make sure of 301 permanent redirect to ensure that the PageRank or ranking will pass over to the new URLs for search engine optimization (SEO).上記の書き換えルールを確かめる301恒久的なリダイレクトを確保するためには、 PageRankやランキングのURLを通過して新しい検索エンジン最適化( SEO )です。 Until the new site structures get fully reindexed, the organic traffic from search engines may be reduced temporarily.新しいサイトの構造を取得するまで、完全にreindexedは、検索エンジンからのトラフィックを有機一時的に低下することがあります。
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 私のデジタルライフフォーラム .です。
Related Articles関連記事
- Add Trailing Slash to the End of the URL with .htaccess Rewrite Rules末尾にスラッシュを追加されたURLの終わりにします。 htaccessのrewriteルール
- Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL書き換えを削除するにリダイレクトまたはダブルまたは複数のスラッシュ( / / )でのURL
- Headdress for Mac OS X ReviewsかぶりものMac OS Xのレビュー
- Search Engine Spider Simulator SEO Tool検索エンジンのスパイダーシミュレータソツール
- How to Change Folder Thumbnail Preview Picture in Windows Vista Explorerフォルダを変更する方法Windows Vistaのエクスプローラのサムネイル画像に表示されプレビュー
- Change My Documents Folder Default Location Path in XP and Vista [マイドキュメント]フォルダに変更XPおよびVistaのパスをデフォルトの場所
- Create Custom Webclips Easily for iPhone webclipsを簡単に作成するためのカスタムiphone
- How to Move WordPress Blog to New Domain or Location WordPressのブログに移動する方法を新しいドメインまたは場所
- How to Bookmark A Web Page Into Firefox 3 Bookmarks Folder When Clicking on Star on Location BarウェブページをブックマークにどのようにフォルダにブックマークをクリックしてFirefoxの3星をロケーションバー
- Edit Internet Explorer Typed URLs in Address Bar Dropdown List Internet Explorerの編集のURLがアドレスバーに入力ドロップダウンリスト















May 8th, 2008 14:40 2008年5月8日14:40
Yeah..うん.. I’m thinking to move my blog from /blogs/ to the main root…ugh..思っているんだからブログに移動する/ブログ/ 〜主要ルート…うわ.. I’m just too scared to do it私はこれを行うにあまりにも怖がって
June 19th, 2008 19:17 2008年6月19日19:17
Thanks dude i tried and it worked fine for my siteそしてそれは男のおかげてみました自分のサイトに罰金 http://www.hurricanesoftwares.com but unfortunately it didn’t worked out for my other site.しかし、残念ながら働いていないして私の他のサイトです。 Wondering whats wrong.何か間違っている。
Ash灰
August 21st, 2008 08:43 2008年8月21日08:43
I’m kind of new to this but couldn’t you just do:私はこのような新しいをするだけ行うにはできませんでした:
Redirect permanent /mylovelysite/リダイレクト常設/ mylovelysite / http://wwww.domain.com/