Converting a Wordpress Blog into a Static Site Conversione di un blog di WordPress in un sito statico
July 9th, 2007 · by David Bradley 9 luglio 2007 da David Bradley
Some time ago, I built a simple little website for Qualche tempo fa, ho costruito un piccolo sito web semplice per UK hydroseeding company Regno Unito hydroseeding società CDTS Ltd. Cambridge Direct Tree Seeding convert brownfield and other sites into lush landscaped areas. CDTS Ltd Cambridge diretto Tree CO convertire dei siti e su altri siti in rigogliosi paesaggi.
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. Inizialmente, ho suggerito alla società che non vi sarebbero diversi vantaggi per l'esecuzione del loro sito come un blog, permettendo loro di aggiungere i propri contenuti su una base ad hoc, e così mantenere i loro clienti e potenziali clienti al passo con l'azienda sviluppi e risultati . 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. Come il breve evoluta, tuttavia, CDTS ha deciso che voleva un sito statico, con l'opzione di aggiungere nuovi contenuti come e quando è stato necessario, piuttosto che per eseguire l'intero sito come un blog. Trouble was I had built the site as a Wordpress blog with all the attendant plugins, posts, paraphernalia. Problemi ho avuto è stato costruito il sito come Wordpress blog con tutti i collegamenti, i post, accessori.
So, how to convert a Wordpress blog with half a dozen posts and a couple of Pages into a static site? Quindi, come convertire un Wordpress blog con una mezza dozzina di posti e di un paio di pagine in un sito statico? 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. Sono certo che ci sono vari metodi, ma il modo più semplice approccio è stato semplicemente a salvare l'intero sito in una cartella sul disco rigido e aprirlo per la modifica in un vecchio-stile html / sito web editor. Quickest way to do that is simply to browse to the homepage, in this case the Modo più rapido per farlo è semplicemente quello di visitare la home page, in questo caso il hydroseeding site hydroseeding sito 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. e scegliere "Salva come…" dal menu File, scegliere una località idonea in Documenti e poi aprire il sito nel tuo 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. Più di ricerca di file e sostituire viene in automatico a portata di mano per stripping varie porzioni di codice di Wordpress, che fissa l'immagine luoghi, e non dimenticare di salvare il file CSS sul sito cartella troppo. Rename the index file as index.html Indice rinominare il file come index.html
Next step is to backup the original Wordpress installation, just in case. Passo successivo è il backup di installazione originale di Wordpress, nel caso in cui. 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. Quindi, la correzione. Htaccess file (fondamentalmente rimuovere la sezione di Wordpress e fare. Html file di default, piuttosto che l'estensione. Php per il file di indice. Mentre sei lì, si potrebbe verificare il tuo dominio reindirizzamento canonico per assicurarsi che stai puntando domain.com con un 301 (permanenti) reindirizzamento al www.domain.com.
Finally, remove the installed Wordpress files (having remotely backed up) and then upload the “Saved as…” version just edited. Infine, rimuovere il file installato Wordpress (dopo aver eseguito il backup in remoto) e quindi di caricare la "salvati come…" versione appena modificato. A quick scan with Xenu reveals any missing or faulty links. Una scansione rapida a qualsiasi Xenu rivela mancanti o difettosi link. So back to the html, couple of quick fixes and another upload of the errant files. Così indietro al codice HTML, paio di soluzioni rapide e un altro di caricare il file errante. Xenu now clean. Xenu ora pulito. New site, static-ized. Nuovo sito, statico-ized. Done. Fatto.
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. Una cosa desidero fare con il sito è quello di utilizzare i CSS per generare la visualizzazione grafica in modo che potessi slot in diverse foto per il quadriennio foto gallery nella parte superiore di ogni pagina, piuttosto che la creazione di una unica immagine per ogni pagina del sito. 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. Che mi permetta di sminuzzare e modificare le immagini su ogni pagina molto più facilmente senza dover avviare Photoshop e fare un bel po 'di affettamento e dadi. If any SigFig readers can advise on a simple way to do that, I’d love to hear from you. Se uno qualsiasi SigFig lettori in grado di consigliare su un semplice modo per fare questo, mi piacerebbe conoscere il vostro parere.
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, A proposito, hydroseeding è l'arte di conversione di uno dei siti o altri sterile sito in un rigoglioso, ricco di vista ecologico e ambiente esteticamente gradevoli utilizzando una speciale selezione di sementi, fertilizer fertilizzante and water and spraying the site selectively with appropriate seed mixes. e acqua e la nebulizzazione del sito selettivamente con miscele di sementi adeguate. CDTS Ltd were the UK pioneers of the technique and have carried out CDTS Ltd Regno Unito sono stati i pionieri della tecnica e hanno effettuato hydroseeding (or hydraseeding) right across the England and Wales. (o hydraseeding) in tutta l'Inghilterra e nel Galles.
Related Posts Posti connessi
- Converting a Wordpress Blog into a Static Site Conversione di un blog di WordPress in un sito statico
- How to Make Html Pages Work Like Wordpress Come fare pagine html funzionano come Wordpress
- Your Favorites Revealed Rivelato i tuoi preferiti
- What You Should Know About Upgrading to Wordpress 2.1 Che cosa si dovrebbe conoscere l'aggiornamento a Wordpress 2,1
- Pop-up Ad Pop-up di annunci






















10 responses so far ↓ 10 risposte finora ↓
jeremy Jeremy // / / Jul 11, 2007 at 12:02 am Jul 11, 2007 at 12:02 am
For a company website that doesn’t change much that is a good idea. Per un sito aziendale che non cambia molto che è una buona 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? Poi, naturalmente, è difficile ottenere notato sul web, e più difficile costruire una comunità, ma questi sono problemi di tutti i client di diritto? Gotta give em what they ask for… sigh. Gotta dare a ciò che essi chiedono… sospiro.
David Bradley David Bradley // / / Jul 11, 2007 at 7:14 am Jul 11, 2007 at 7:14 am
A website can still change and evolve without it relying on blogging structure or software. Un sito web può ancora cambiare ed evolvere senza che basandosi sulla struttura di blog o software. There is, of course, another alternative to simply making a blog-type site entirely static and that is to Non vi è, ovviamente, un'altra alternativa a fare semplicemente un blog di tipo statico sito interamente e che è quello di use Wordpress as a content management system Wordpress utilizzare come un sistema di gestione dei contenuti with a dynamic homepage, but exclude “The Loop” if the client does not wish to have any dynamic posts/comment content. con una home page dinamica, ma esclude "il loop" se il cliente non vuole avere alcun dinamica posti / commento contenuto.
David Szpunar David Szpunar // / / Jul 21, 2007 at 4:46 pm Luglio 21, 2007 at 4:46 pm
We’re actually converting our existing custom-PHP website at work into a “static” site with WordPress as the CMS. Stiamo effettivamente esistenti nostra conversione personalizzato-PHP sito web sul luogo di lavoro in un "statica" sito con WordPress come CMS. Means easier templating, easy to edit pages as needed without special software (Dreamweaver) and without modifying the template. Templating mezzo più semplice, facile da modificare le pagine, se necessario, senza uno speciale software (Dreamweaver) e senza modificare il modello. 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. Inoltre, si cambia la pagina principale settimanale, e probabilmente posti per utilizzare questa pagina, visualizzando solo la più recente-nessuno potrà mai sapere è un blog molto probabilmente, anche se possono rendere disponibili i feed se la gente vuole iscriversi a il notiziario settimanale in quel modo.
The plugins, flexibility, and my familiarity with WordPress already made it a no-brainer as the choice. Il plugin, flessibilità, e la mia familiarità con WordPress già fatto uno sforzo non come una scelta. 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. C'è già un plugin per fare quasi tutto abbiamo bisogno, e se non c'è Sono in grado di scrivere uno o personalizzare e rendere ancora più semplice per aggiornare il WordPress core con le nuove versioni senza dover ri-modificare il codice personalizzato.
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. , Più, buchi di sicurezza sono individuato e risolto il di comunità, piuttosto che codice personalizzato che abbiamo avuto alcuni problemi di sicurezza con in passato. Just not enough eyes to cover it all! Solo non basta a coprire gli occhi tutto!
David Bradley David Bradley // / / Jul 23, 2007 at 3:24 pm Luglio 23, 2007 at 3:24 pm
Yeah, good way to go if you need to use a CMS and want all the pros of Wordpress. Yeah, buona strada da percorrere se si ha bisogno per l'utilizzo di un CMS e desidera che tutti i pro di 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. Come ho detto, questo particolare sito è ora completamente statico, il che significa che non si preoccupa precari collegamenti, la generazione delle pagine dinamiche, o qualsiasi altra cosa connessi al WP e CMS venire a questo. Simple as it is, it does it’s job for the company very well (they tell me) Semplice così com'è, lo fa il lavoro per l'azienda molto bene (mi dicono)
David Szpunar David Szpunar // / / Jul 23, 2007 at 3:30 pm Luglio 23, 2007 at 3:30 pm
I suppose it comes down to: update often or not? Suppongo che scende a: aggiornare spesso o no? 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. Un sito statico scala bene e ha meno vulnerabilità di sicurezza superficie, ma, se il tuo obiettivo è di mantenere aggiornato il sito con nuove informazioni continuamente (in particolare su più persone il mantenimento del sito), un CMS è valsa la pena di ulteriori sforzi e risorse.
I like your post either way; I hadn’t actually thought of converting from WordPress to static before. Mi piace il tuo post più o in meno; non avevo realmente pensato di conversione da WordPress a statica prima. 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. Non è qualcosa che sarà probabilmente mai fare, ma è bene riflettere su ciò che altri stanno facendo di tanto in tanto; stimola nuove idee. Thanks. Grazie.
David Bradley David Bradley // / / Jul 23, 2007 at 4:08 pm Luglio 23, 2007 at 4:08 PM
Horses for courses and all that. Cavalli per tutti i corsi e che. The guys at CDTS opted not to have the blogging option. I ragazzi a CDTS scelto di non avere l'opzione di blog. 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. Naturalmente, i contenuti aggiornati di frequente e nuove informazioni sono la linfa vitale dei blog, ma non sono necessariamente che importante per tutti che vuole un sito web.
David Szpunar David Szpunar // / / Jul 23, 2007 at 4:13 pm Luglio 23, 2007 at 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” No… e se si osserva come avete bisogno di nuove informazioni e non lo avete, ti aspetto peggiore se si mettere in su le informazioni statiche che non dice "l'ultimo posto tre anni fa"
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! Ora, potrebbe non ottenere più attenzione da parte dei motori di ricerca, ecc dal momento che fare come nuovo materiale, ma, se non si vuole impegnare le risorse per rimanere aggiornato, non fate un sito che dovete aggiornare! 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. Vedo questo errore tutto il tempo a siti in cui essi non sanno quanto tempo ci vorrebbe per mantenere aggiornato il sito in modo che rifletta in modo negativo su di essi.
I think we’re in full agreement. Penso che siamo in pieno accordo.
David Bradley David Bradley // / / Jul 23, 2007 at 5:59 pm Luglio 23, 2007 at 5:59 pm
I think we most certainly are. Penso che la maggior parte sono certamente. 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. Dalla prospettiva di SEO vale la pena di avere un sito che è fresco, ma se il sito è # 1 per le sue parole chiave sulla base di abili di installazione non importa davvero troppo alla fine.
Makeda Makeda // / / Feb 6, 2008 at 2:59 pm Febbraio 6, 2008, 2:59 pm
I am thinking of converting my blog into a website with my own url. Sto pensando di convertire il mio blog in un sito web con il mio url. I have my blog on blogger. Ho il mio blog su Blogger. Is it possible to do the same? E 'possibile fare lo stesso?
Makeda’s last blog post.. Makeda l'ultimo post sul blog .. The Single Girls Guide to Valentine’s Day Unico Girls Guida per la Valentineâ € ™ s Day
David Bradley David Bradley // / / Feb 6, 2008 at 3:14 pm Febbraio 6, 2008, 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. Essa è certamente la maggior parte - check out questo post e assicurarsi di stare a fondo la ricerca e gli altri reindirizzamenti tali questioni qui e altrove c'è un sacco di consigli e di almeno un plug in per aiutare con il processo. But remember there are no guarantees. Ma ricordate non ci sono garanzie.
http://www.sciencetext.com/blogger-custom-domain.html
db PB
Leave a Comment Lascia un commento