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.我們已收到了數暫時性的麻煩與重新導向和失踪的主題,和已損壞的鏈接和一樣,我已經搗碎,在這些網頁在過去數天在的形式,希望普遍有用的提示和技巧為他人在一個類似的困境。 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.作為新的博客網址,使建築與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
RewriteBase / rewritebase /
RewriteRule ^([0-9]{4})/([0-9]{1,2})/([^/]+).html$ $3\.html [QSA,R,L] rewriterule ^ ( [ 0-9 ] (四})/([ 0-9 ] ( 1,2 })/([^/]+).的HTML元, 3元\ 。 html的[ qsa法,俄,升]
</IfModule> < / ifmodule >
I figured this out with the help of the i想通了這一點與幫助的 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回應到目前為止↓
David Bradley 大衛布拉德利 // / / Sep 27, 2007 at 1:01 pm 9月27日, 2007年在下午1時01分
Amit Agarwal on阿米特agarwal對 Digital Inspiration數字的啟示 gives us yet another reason to switch from Blogger Blogspot to another system, especially if you’re using Feedburner for your feeds - Sitemap Warnings!給我們的又一理由開關從Blogger的BlogSpot到另一個系統,特別是如果您使用feedburner您的供稿-網站地圖警告!
Leave a Comment留下意見