Converting a Wordpress Blog into a Static Site تحويل بلوق WordPress الى ساكنة في الموقع
July 9th, 2007 · by David Bradley يوليو 9th ، 2007 من قبل ديفيد برادلي
Some time ago, I built a simple little website for منذ بعض الوقت ، أنا بنت بسيطة قليلا للموقع UK hydroseeding company Hydroseeding الشركة في المملكه المتحدة CDTS Ltd. Cambridge Direct Tree Seeding convert brownfield and other sites into lush landscaped areas. Cdts المحدوده كامبردج شجرة البذر المباشر تحويل Brownfield وغيرها من المواقع في المناطق ذات المناظر الطبيعيه معشب.
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 قررت انها تريد لموقع الويب جامدة ، مع خيار لاضافة محتوى جديد وكما وعندما كانت الحاجة ، وليس لادارة موقع الجامعة بوصفها بلوق. Trouble was I had built the site as a Wordpress blog with all the attendant plugins, posts, paraphernalia. المشكلة هي انني قد بني في الموقع بوصفها بلوق WordPress بكل ما يترتب على ملحقات ، وظائف ، الحاجيات المتنوعة.
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. وانا واثق من أن هناك أساليب مختلفة ، ولكنها ابسط النهج هو ببساطة احفظ كامل الموقع الى مجلد على محرك القرص الثابت ويفتح باب التحرير في الطراز القديم لغة تأشير النص الفائق / محرر الموقع الالكتروني. Quickest way to do that is simply to browse to the homepage, in this case the اسرع طريقة لذلك هي ان مجرد تصفح الى الصفحه الرئيسية ، وهي في هذه الحاله hydroseeding site hydroseeding الموقع 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. واختيار "حفظ باسم…" من القائمة ملف ، اختيار موقع مناسب في بلدي وثائق وثم فتح الموقع الخاص بك في تحرير لغة تأشير النص الفائق. 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 وجعل الباب. لغة تأشير النص الفائق الافتراضيه بدلا من ان امتداد الملف. بى. اتش. بى لمؤشر الملف. وبينما كنت هناك ، كنت قد افحص اعادة توجيه المجال الكنسي للتأكد من الاشارة أنت 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. حتى العودة الى لغة تأشير النص الفائق ، واثنين من حلول سريعه واخرى للتحميل ملفات ضال. 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 لتوليد البيانيه عرض كي اتمكن من فتحة في صور مختلفة لأربع معرض الصور في أعلى كل صفحة ، بدلا من انشاء رأس صورة فريدة عن كل صفحة للموقع. 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. التي من شأنها ان اسمحوا لي ان القطعه وتغيير الصور في كل صفحة بسهولة اكبر دون الحاجة الى اطلاق النار حتى ادوبي فوتوشوب والقيام باسره الكثير من التقطيع والتكعيب. 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, من جانب الطريق ، hydroseeding هي فن تحويل Brownfield جرداء أو غيرها من الموقع الى معشب ، بيئيا وجماليا ارضاء الاغنياء البيئة الخاصة باستخدام اختيار البذور ، fertilizer سماد and water and spraying the site selectively with appropriate seed mixes. والرش والمياه والموقع بشكل انتقائي مع مزج البذور المناسبه. CDTS Ltd were the UK pioneers of the technique and have carried out Cdts المحدوده في المملكه المتحدة هي من رواد هذا الاسلوب ونفذت hydroseeding (or hydraseeding) right across the England and Wales. (او hydraseeding) الحق فى جميع انحاء انكلترا وويلز.
Related Posts الوظائف ذات الصلة
- Converting a Wordpress Blog into a Static Site تحويل بلوق WordPress الى ساكنة في الموقع
- How to Make Html Pages Work Like Wordpress كيفية جعل صفحة لغة تأشير النص الفائق في العمل كما WordPress
- Your Favorites Revealed وكشفت المفضلة لديك
- What You Should Know About Upgrading to Wordpress 2.1 ما يجب ان تعرفه عن الارتقاء الى 2،1 WordPress
- Pop-up Ad نافذة منبثقه






















10 responses so far ↓ 10 الردود حتى الآن ↓
jeremy جيرمي // / / Jul 11, 2007 at 12:02 am 11 يوليو ، 2007 في الساعة 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. يجب اعطاء طب الطوارئ ما أسال ل… التنهده.
David Bradley ديفيد برادلي // / / Jul 11, 2007 at 7:14 am 11 يوليو ، 2007 في الساعة 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 21 يوليو ، 2007 في الساعة 4:46
We’re actually converting our existing custom-PHP website at work into a “static” site with WordPress as the CMS. نحن فعلا لدينا من تحويل العرف - بي. اتش. بى فى موقع العمل الى "ثابتة" كما WordPress الموقع مع اتفاقيه الانواع المهاجره. Means easier templating, easy to edit pages as needed without special software (Dreamweaver) and without modifying the template. Templating اسهل وسيلة سهلة لتتمكن من تعديل الصفحات الخاصة حسب الحاجة دون برامج (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. بالاضافة الى ذلك ، ونحن تغيير الصفحه الرئيسية الاسبوعيه ، والمرجح ان استخدام وظائف لهذه الصفحه ، مجرد عرض احدث واحدة - لا يمكن لأحد ان يعرف على الاطلاق it'sa بلوق على الارجح ، على الرغم من اننا قد جعل إطعام متاحة اذا كان الناس يريدون الاشتراك الاخبار الاسبوعيه على هذا النحو.
The plugins, flexibility, and my familiarity with WordPress already made it a no-brainer as the choice. وقد ملحقات ، والمرونة ، والتعود على بلدي WordPress بالفعل جعله لا brainer - بوصفه الخيار. 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. هناك بالفعل البرنامج المساعد ان تفعل كل شيء تقريبا ونحن بحاجة ، واذا كان هناك لا استطيع ان اكتب واحد او واحدة وتخصيص ما زالت تجعل من السهل على رفع مستوى 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 23 يوليو ، 2007 في الساعة 3:24
Yeah, good way to go if you need to use a CMS and want all the pros of Wordpress. نعم ، اذهب الى وسيلة جيدة إذا كنت تحتاج الى استخدام اتفاقيه الانواع المهاجره ونريد من جميع الايجابيات 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. كما قلت ، هذا الموقع الآن ساكنة تماما ، الامر الذي يعني لا تقلق ازاء انعدام الامن ملحقات ، وتوليد ديناميه صفحة ، او اي شيء آخر الى رزمه العمل ذات الصلة واتفاقيه الانواع المهاجره التي تأتي الي. 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 23 يوليو ، 2007 في 3:30 بعد الظهر
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. ساكنة الموقع جيدا وعلى نطاق اقل ثغرة امنية مساحة السطح ، ولكن اذا كان هدفك هو الاستمرار في تحديث الموقع باستمرار مع معلومات جديدة (ولا سيما عبر عدة اشخاص الحفاظ على الموقع) ، واتفاقيه الانواع المهاجره يستحق مزيدا من الجهد والموارد.
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 23 يوليو ، 2007 في الساعة 4:08
Horses for courses and all that. وخيل للجميع ان الدورات. The guys at CDTS opted not to have the blogging option. الرجال في cdts لقد اخترت عدم المدونات الخيار. 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 23 يوليو ، 2007 في الساعة 4:13
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” لا… واذا نظرتم الى مثلك حاجة الجديدة للمعلومات وانها لا تملك ، فسوف ننظر اسوأ من انك اذا وضعت المعلومات التي تصل ساكنة لا يقول "كان آخر منصب قبل ثلاث سنوات"
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 23 يوليو ، 2007 في الساعة 5:59
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. من منظور سيو ومن الجدير لها وهذا هو الموقع الجديد ، ولكن اذا كان الموقع هو رقم 1 لالكلمات الرئيسية على اساس الاعداد بمهاره لا حقا المساله اكثر من اللازم في النهاية.
Makeda Makeda // / / Feb 6, 2008 at 2:59 pm 6 فبراير ، 2008 في الساعة 2:59
I am thinking of converting my blog into a website with my own url. إنني أفكر في بلدي بلوق الى تحويل موقع على شبكة الانترنت مع موقع بلدي. I have my blog on 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 6 فبراير ، 2008 في الساعة 3:14
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. انه بكل تأكيد هو -- تحقق من هذه الوظيفة وتأكد انك دقيق يعيد توجيه البحوث وغيرها من مثل هذه الأمور هنا وفي اماكن اخرى وهناك الكثير من المشوره واحدة على الاقل البرنامج المساعد للمساعدة في هذه العملية. But remember there are no guarantees. لكن تذكر انه لا توجد ضمانات.
http://www.sciencetext.com/blogger-custom-domain.html
db ديسيبل
Leave a Comment ترك التعليق