Converting a Wordpress Blog into a Static Site WordPressのブログを静的に変換するサイト
July 9th, 2007 · by David Bradley 2007年7月9日にデビッドブラッドリー
Some time ago, I built a simple little website forいくつかの時間前、私の簡単な小さなウェブサイトを構築 UK hydroseeding company英国種子吹き付け会社 CDTS Ltd. Cambridge Direct Tree Seeding convert brownfield and other sites into lush landscaped areas.カテゴリ種まきcdts株式会社ケンブリッジ直接利用されなくなった産業やその他のサイトを変換する緑豊かな美しい地域です。
Initially, I suggested to the company that there would be several advantages to running their site as a blog, allowing them to add their own content on an ad hoc basis, and so keep their clients and potential clients up to date with company developments and achievements.当初、私提案をした会社は、実行中のいくつかの利点があるが自分のサイトとしてのブログに、独自のコンテンツを追加できるようにして上で場当たり的にし、これを維持できるよう、クライアントと潜在的な顧客を最新の会社の発展と成果です。 As the brief evolved, however, CDTS decided that it wanted a static website, with the option to add new content as and when it was needed, rather than to run the whole site as a blog.簡単な進化として、しかし、指名手配してcdtsことを決めた静的なWebサイトは、新しいコンテンツを追加するオプションとして、ときには必要に応じてではなく、サイト全体を実行するにはブログです。 Trouble was I had built the site as a Wordpress blog with all the attendant plugins, posts, paraphernalia.トラブルは、私はこのサイトとして建てのWordPress Blogでのすべてのアテンダントの差込、投稿、道具です。
So, how to convert a Wordpress blog with half a dozen posts and a couple of Pages into a static site?そのため、どのように変換するに半ダースものWordPressのブログを投稿し、いくつかのページを、静的なサイトですか? I am sure there are various methods, but the simplest approach was to simply save the whole site to a folder on your hard drive and open it for editing in an old-style html/website editor.私は確信には様々な方法が、最も簡単なアプローチは、サイト全体を単純にして保存して、ハードドライブやフォルダを開いて編集し、古いスタイルのhtml /ウェブサイトのエディタを起動します。 Quickest way to do that is simply to browse to the homepage, in this case the手っ取り早い方法でこれを行うには、単にのホームページを参照して、この場合は、 hydroseeding site種子吹き付けサイト and choose “Save as…” from the File menu, choose a suitable location in My Documents and then open up the site in your html editor.と選択し"名前を付けて保存… "から[ファイル]メニューの[マイドキュメント]を選択すると入力し、適切な場所に開放して、サイトのHTMLエディタです。 Multiple file search and replace comes in handy for automatically stripping various chunks of Wordpress code, fixing image locations, and not forgetting to save the CSS file to the site folder too.複数のファイルの検索と置換には様々なハンディを自動的に除去チャンクのWordPressのコードは、固定のイメージの場所ではなく、忘却のCSSファイルを保存するフォルダをサイトが判明しました。 Rename the index file as index.html index.htmlをインデックスファイルとしての名前を変更する
Next step is to backup the original Wordpress installation, just in case.次のステップでは、元のWordPressのインストールをバックアップし、問題が発生した場合だけです。 Then, fix up the .htaccess file (basically remove the Wordpress section and make .html the default file extension rather than .php for the index file. While you’re there, you might check your canonical domain redirect to make sure you are pointing domain.com with a 301 (permanent) redirect to www.domain.com.次に、修正する。 htaccessファイル( WordPressのセクションで、基本的に削除してください。のHTMLではなく、デフォルトのファイル拡張子。 phpのためのインデックスファイルです。状態になる場合はある、あなたかもしれない確認してください正規のドメインにリダイレクトされることを確認してポインティングdomain.comと、 301 (常設) www.domain.comにリダイレクトされる。
Finally, remove the installed Wordpress files (having remotely backed up) and then upload the “Saved as…” version just edited.最後に、 WordPressのファイルを削除してインストールする(リモートバックアップすること)と入力し、アップロードして"として保存され… "のバージョンだけ編集してください。 A quick scan with Xenu reveals any missing or faulty links. xenuクイックスキャンを明らかに任意のリンクが存在しないか、または欠陥です。 So back to the html, couple of quick fixes and another upload of the errant files. HTMLのよう省略して、いくつかのクイックで修正したり、別のファイルのアップロードは、遍歴のです。 Xenu now clean.今すぐxenu清潔度です。 New site, static-ized.新しいサイトは、静的- ized 。 Done.完了した。
One thing I would like to do with the site is to use CSS to generate the graphical display so that I could slot in different photos for the four-photo gallery at the top of each page, rather than creating a unique header image for each page of the site.一つのことをしたいのか私のサイトを使用するCSSを生成するには、グラフィカルなディスプレイ表示が異なるように私がスロットの4つの-の写真をフォトギャラリーの上部の各ページのではなく、独自のヘッダーを作成する各ページの画像を本サイトです。 That would allow me to chop and change images on each page much more easily without having to fire up Photoshop and do a whole lot of slicing and dicing.それは私にチョップを変更できるように各ページの画像をはるかに簡単にせずに全体を活性化させることで、多くのPhotoshopのスライシングとダイシングです。 If any SigFig readers can advise on a simple way to do that, I’d love to hear from you.もしあればアドバイスsigfig読者は、簡単な方法は、これを行うにして、私を聞いてから気に入ると思うよ。
By the way, hydroseeding is the art of converting a brownfield or other barren site into a lush, ecologically rich and esthetically pleasing environment using a special selection of seeds, fertilizer and water and spraying the site selectively with appropriate seed mixes.ところで、種子吹き付けは、アートに変換するサイトを利用されなくなった産業やその他の不毛の緑豊かな、豊かな生態学的環境とesthetically人好きの特別選考の種子を使用して、肥料と水と適切な種子吹き付けミックスのサイトを選択します。 CDTS Ltd were the UK pioneers of the technique and have carried out cdts (株は、英国の先駆者は、技術とは実施 hydroseeding種子吹き付け (or hydraseeding) right across the England and Wales. (またはhydraseeding )横切って、イングランドとウェールズです。






















10 responses so far ↓ 10レスポンスこれまでのところ↓
jeremy ジェレミー // / / Jul 11, 2007 at 12:02 am 2007年7月11日の12:02時
For a company website that doesn’t change much that is a good idea.同社のウェブサイトには、多くが変更されていないのは良いアイデアです。 Then of course it’s harder to get noticed on the web, and harder to build a community, but those are all client problems right?もちろん、それが困難に入力し、気付かれる、ウェブ上のコミュニティを構築すると難しく、しかし、これらの権利はすべてのクライアントの問題ですか? Gotta give em what they ask for… sigh.彼らは何を求めるgotta与える日…ため息をつく。
David Bradley デビッドブラッドリー // / / Jul 11, 2007 at 7:14 am 2007年7月11日は7:14アム
A website can still change and evolve without it relying on blogging structure or software.ウェブサイトに進化することができますの変更やブログの構造やソフトウェアに依存することです。 There is, of course, another alternative to simply making a blog-type site entirely static and that is toには、もちろん、別のメーカーの代わりに、単にサイトのブログに型を全面的には、静的および use Wordpress as a content management system WordPressのコンテンツ管理システムとして使用する with a dynamic homepage, but exclude “The Loop” if the client does not wish to have any dynamic posts/comment content.と、動的なホームページ、しかし、除外する"ループ"を希望されない場合は、クライアントには任意のダイナミックの記事/コメントのコンテンツです。
David Szpunar デビッドszpunar // / / Jul 21, 2007 at 4:46 pm 2007年7月21日は午後4時46分
We’re actually converting our existing custom-PHP website at work into a “static” site with WordPress as the CMS.私たちは、実際に変換する既存のカスタム- PHPのWebサイトで仕事をする"静的"サイトでのCMSとしてのWordPressです。 Means easier templating, easy to edit pages as needed without special software (Dreamweaver) and without modifying the template.簡単にテンプレートの手段は、必要に応じて簡単にページを編集すると、特別なソフトウェア( Dreamweaverの)と、テンプレートを変更することなく。 Plus, we change the main page weekly, and will likely use Posts for this page, just displaying the most recent one–no one will ever know it’sa blog most likely, although we may make the feed available if people want to subscribe to the weekly news that way.加えて、メインページを変更して毎週、となりそうこのページの記事を使用し、 1つだけ表示して最近のブログの1つは、これまで知って最も高いが、フィードを作ることがありますがご利用の場合、人々に登録するにはのウィークリーニュースですね。
The plugins, flexibility, and my familiarity with WordPress already made it a no-brainer as the choice.のプラグイン、柔軟性、および私のことを熟知しているのWordPressすでに選択肢として考えるのです。 There’s already a plugin to do almost everything we need, and if there isn’t I can write one or customize one and still make it easy to upgrade the WordPress core with new versions without having to re-edit the customized code.これを行うには、すでにほとんどすべてのプラグインが必要、と私はここがない場合は、 1つまたは1つのカスタマイズも簡単に行えるように、新しいバージョンにアップグレードすることなく、 WordPressのコアを再編集してカスタマイズしたコードです。
Plus, security holes are found and fixed the by community, rather than custom code which we’ve had some security problems with in the past.加えて、セキュリティホールが見つかったと固定は、そのコミュニティではなく、カスタムコードを受けてきたいくつかの安全保障上の問題を編集して項目をします。 Just not enough eyes to cover it all!それだけがすべてをカバーするに十分な目!
David Bradley デビッドブラッドリー // / / Jul 23, 2007 at 3:24 pm 2007年7月23日は3:24 pmの
Yeah, good way to go if you need to use a CMS and want all the pros of Wordpress.うん、良い方法に行くのCMSを使用するにする必要がある場合のすべての長所のWordPressとしたい。 Like I said, this particular site is now entirely static, which means no worries about insecure plugins, dynamic page generation, or anything else related to WP and CMS come to that.さっきも言ったけど、この特定のサイトは現在、完全に静的な、つまり不安定なプラグインの懸念は、動的なページ生成か、またはそれ以外のWP関連して、そのことになるとのCMSです。 Simple as it is, it does it’s job for the company very well (they tell me)簡単なことでは、これは、会社の仕事のこと非常によく(かれら教えてください。 )
David Szpunar デビッドszpunar // / / Jul 23, 2007 at 3:30 pm 2007年7月23日3:30 pmの
I suppose it comes down to: update often or not?これは、たぶん:更新プログラムの多いかどうかですか? A static site will scale well and has less security vulnerability surface area, but if your goal is to keep the site updated with fresh information continually (especially across multiple people maintaining the site), a CMS is worth the extra effort and resources.静的なサイトではセキュリティ上の脆弱性規模も表面積が少ないと、もしあなたのサイトを目標として維持する新鮮な情報を継続的に更新さ(特に、複数のサイトを維持する人々 )は、 CMSは、余分な努力と資源の価値です。
I like your post either way; I hadn’t actually thought of converting from WordPress to static before.私はあなたの郵便のいずれかの方法;私は考えていない実際のWordPressを静的に変換する前からです。 It’s not something I’ll likely ever do, but it’s good to think about what others are doing once in a while; it stimulates new ideas.それは何か私がそうかりそめにも、それは良い他の人のことを考えるたまには;て新しいアイデアを刺激します。 Thanks.ありがとう。
David Bradley デビッドブラッドリー // / / Jul 23, 2007 at 4:08 pm 2007年7月23日日4:08 pm
Horses for courses and all that.餅は餅屋とすべてのことです。 The guys at CDTS opted not to have the blogging option. cdtsの人は受け取らないように設定して、 Bloggingのオプションを選択します。 Of course, frequently updated content and new information are the lifeblood of blogs , but are not necessarily that important to everyone who wants a website.もちろん、頻繁に更新されたコンテンツや、新しい情報は、かけがえのブログの、しかし重要なのは、必ずしもすべての人が望んでいるウェブサイトです。
David Szpunar デビッドszpunar // / / Jul 23, 2007 at 4:13 pm 2007年7月23日は4:13 pmの
Nope…and if you look like you need new information and don’t have it, you’ll look worse than if you put up static information that doesn’t say “last post three years ago”ううん…とする場合、次のようにする必要があります。新しい情報はありませんしていただく見通しに比べ悪い探す静的な情報を出す場合に言ってやるがされていない" 3年前に最後の投稿"
Now, you may not get as much attention from search engines, etc. since they do like new stuff, but if you don’t want to commit the resources to stay updated, don’t make a site you have to update!今すぐ、できるだけ多く取得することはできませんな注目を集めて、検索エンジンなどのようなので、新しいものは、しかししたくない場合は、ご滞在をコミットしてのリソースを更新されると、には大したことはサイトを更新する必要が! I see this mistake all the time on sites where they didn’t really know how much time it would take to keep the site updated so it reflects poorly on them.この間違いを拝見のすべての時間を本当に分かっていないサイトのどこにどれくらいの時間はかかるだろうサイトの更新を維持するの悪いので反映されています。
I think we’re in full agreement.私たちは全面的に合意されている。
David Bradley デビッドブラッドリー // / / Jul 23, 2007 at 5:59 pm 2007年7月23日は5:59 pmの
I think we most certainly are.私たちは最も確かです。 From the SEO perspective it is worth having a site that is fresh, but if the site is #1 for its keywords on the basis of skillful setup it doesn’t really matter too much in the end. SEOの観点から価値があることは、サイトには新鮮な、しかし、サイトは、 # 1の場合、そのキーワードに基づいて巧みなセットアップわけでは大した問題ではないの最後にし過ぎる。
Makeda makeda // / / Feb 6, 2008 at 2:59 pm 2008年2月6日は2:59 pmの
I am thinking of converting my blog into a website with my own url.私は私のblogに変換する考えをウェブサイトに自分自身のURLです。 I have my blog on blogger. Bloggerのブログを持っているんです。 Is it possible to do the same?これを行うには同じことは可能ですか?
Makeda’s last blog post.. makedaの最後のブログに投稿.. The Single Girls Guide to Valentine’s Day シングルガールガイドをvalentineâ € ™秒日
David Bradley デビッドブラッドリー // / / Feb 6, 2008 at 3:14 pm 2008年2月6日は3:14 pmの
It most certainly is - check out this post and make sure you thoroughly research redirects and other such matters here and elsewhere there is lots of advice and at least one plugin to help with the process.最も確かにそれは-チェックアウトこの投稿を徹底的に研究しておいリダイレクトや他のこのような問題をはじめ、ここにはたくさんのアドバイスや、少なくとも1つのプロセスを支援するプラグインです。 But remember there are no guarantees.しかし、覚えがない保証します。
http://www.sciencetext.com/blogger-custom-domain.html
db dBの
Leave a Commentコメントを残す