sciencetextコツと秘訣
Blogging tips, browsing tricks and computing hacks ブログのヒントについては、ブラウジングトリックやコンピューティングhacks

Blogger to Hosted Wordpress BloggerにホストのWordPress

February 2nd, 2007 · by David Bradley 2007年2月2日にデビッドブラッドリー

As readers will hopefully have realised by now, Significant Figures was formerly a Blogspot blog and is now part of the new ScienceText.com site.読者としても、うまくいけば今すぐに実現され、重要な数字は、以前BlogSpotの無料サービスをしており、現在の新しい部分sciencetext.comサイトです。 We’ve had a few teething troubles with redirects and missing themes, and broken links and the like that I’ve mashed out in these pages over the last couple of days in the form of hopefully generally useful Tips&Tricks for others in a similar predicament.私たちはいくつかの歯が生えてきたと行方不明のトラブルにリダイレクトテーマ、および壊れたリンクや、マッシュポテトするように私はこれらのページの最後の2日間以上の形でうまくいけば、通常の他の役に立つヒントとコツを、同様の苦境にします。 Well, the latest, and hopefully last thing to iron out was the old references in the search engines and elsewhere to specific posts from the archives.ええと、最新のは、鉄のことをするとうまくいけば最終更新は、古い参考文献は、検索エンジンやその他のアーカイブを特定のポストからです。

As the new blog architecture renders URLs with the postname.html in the root of the domain eg www.sciencetext.com/this-post-here.html there were numerous links from the old Blogger archives that were trying to open www.sciencetext.com/2006/11/this-post-here.html.レンダリングのアーキテクチャとして、新しいブログのURLをpostname.html例えば、ドメインのルートにwww.sciencetext.com /この-ポストhere.htmlがあった多くの古いBloggerのアーカイブからのリンクを開こうとしてwww.sciencetextされた。 com/2006/11/this-post-here.htmlです。 This was producing a preponderance of 404 missing page error messages.これは行方不明の生産を404ページに優位なエラーメッセージが表示されます。

The fix involves opening the root .htaccess file and adding the following code.この修正プログラムは、オープニングのルートに。 htaccessファイルに、次のコードを追加します。 This does a rewrite on the incoming URL and strips out any sub-folder structures (with numbers), adds the .html to the end and then opens the page as if it were in the root folder as it shouldこれは、着信URLを選択してストリップを書き換えて任意のサブフォルダ構造(の数字) 、追加します。 HTMLをポップアップするページの最後にと入力し、まるでばならないとしてのルートフォルダに

<IfModule mod_rewrite.c> <ifmodule mod_rewrite.c>
RewriteEngine On RewriteEngine on経験上、
RewriteBase / rewritebase /
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([^/]+).html$ $3\.html [QSA,R,L] rewriterule ^ ( [ 0-9 ] ( 4 })/([ 0-9 ] ( 1,2 })/([^/]+).のHTML $ $ 3 \ 。 htmlに[ qsa 、研究、左]
</IfModule> < / ifmodule >

I figured this out with the help of the私の助けを借りて計算すると、このアウト Wordpress forum WordPressのフォーラム , but it required some tweaking of Otto42’s solution on that page to get it work just right. 、それが必要となります。 otto42の解決策をいくつかの調整をそのページにちょうどいい仕事を得ることです。

If you have a similar problem moving an old blog to new hosting with posts in a different folder then you should be able to adapt this piece of code to work for you.同様の問題に移動お持ちの場合は、古いブログを新たに投稿は、別のフォルダのホスティングを入力し、これに適応することが出来るはずのコードを一つの仕事をします。 If there are letters in the folder names as well as numbers, then you need to add [AZ][az] to encompass those in the script.がある場合は、フォルダ名の文字数字だけでなく、その後に追加する必要が[アリゾナ] [アリゾナ]を取り囲むそれらに実行されるスクリプトです。

1 response so far ↓ 1応答これまでのところ↓

Leave a Commentコメントを残す

Comments are checked for spam before appearing, no need to post it twice.コメントのチェックボックスをマークする前に表示され、作成する必要がないこと2回クリックします。

Related Posts関連記事