Converting a Wordpress Blog into a Static Site La conversión de un Wordpress Blog en un sitio estático
July 9th, 2007 · by David Bradley 9 de julio de 2007 por David Bradley
Some time ago, I built a simple little website for Hace algún tiempo, he construido una sencilla página web para poco UK hydroseeding company Reino Unido hydroseeding empresa CDTS Ltd. Cambridge Direct Tree Seeding convert brownfield and other sites into lush landscaped areas. CDTS Ltd Cambridge Tree Siembra Directa convertir industriales abandonadas y otros sitios en exuberantes zonas ajardinadas.
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. Al principio, me propuso a la empresa que habría varias ventajas para correr su sitio como un blog, lo que les permite añadir sus propios contenidos sobre una base ad hoc, y para que mantengan sus clientes y posibles clientes al día con la evolución de la empresa y los logros . 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. Como la breve evolucionado, sin embargo, CDTS decidió que quería una página web, con la opción de añadir nuevos contenidos como y cuando se necesita, en lugar de correr en todo el sitio como un blog. Trouble was I had built the site as a Wordpress blog with all the attendant plugins, posts, paraphernalia. Problema I se ha construido el sitio como un blog de Wordpress con todos los complementos, puestos, parafernalia.
So, how to convert a Wordpress blog with half a dozen posts and a couple of Pages into a static site? Por lo tanto, cómo convertir un blog de Wordpress con media docena de puestos y un par de páginas en un sitio estático? 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. Estoy seguro de que hay diversos métodos, pero la aproximación más simple es simplemente para guardar todo el sitio a una carpeta en su disco duro y abrirlo para la edición de un viejo estilo html / website editor. Quickest way to do that is simply to browse to the homepage, in this case the Forma más rápida de hacerlo es simplemente para navegar a la página principal, en este caso el hydroseeding site hydroseeding sitio 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. y selecciona "Guardar como…" en el menú Archivo, seleccione una ubicación adecuada en Mis documentos y, a continuación, abrir el sitio de su 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. Múltiples búsqueda de archivos y viene a sustituir la mano de forma automática el paso de varios trozos de código de Wordpress, la fijación de imagen de lugares, y sin olvidar a guardar el archivo CSS al sitio carpeta. Rename the index file as index.html Renombrar el archivo de índice como index.html
Next step is to backup the original Wordpress installation, just in case. El siguiente paso es una copia de seguridad del original de instalación de Wordpress, por si acaso. 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. A continuación, fijar hasta el. Htaccess archivo (básicamente eliminar la sección de Wordpress y hacer. Html la extensión de archivo por defecto en lugar de. Php para el archivo de índice. Mientras esté allí, usted puede comprobar su dominio canónico reorientar para asegurarse de que está apuntando domain.com con 301 (permanente) para redirigir www.domain.com.
Finally, remove the installed Wordpress files (having remotely backed up) and then upload the “Saved as…” version just edited. Por último, eliminar el Wordpress instalado los archivos (con control remoto copias de seguridad) y, a continuación, subir el "Guardado como…" versión acaba de editar. A quick scan with Xenu reveals any missing or faulty links. Un rápido barrido con Xenu revela que falten o fallos en los enlaces. So back to the html, couple of quick fixes and another upload of the errant files. Por lo tanto, vuelve a html, par de soluciones rápidas y otro de subida de los archivos errantes. Xenu now clean. Xenu ahora limpio. New site, static-ized. Nuevo sitio, estática-mente. Done. Hecho.
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 que me gustaría hacer con el sitio es usar CSS para generar la pantalla gráfica de modo que pude ranura en diferentes fotos de los cuatro-galería de fotos en la parte superior de cada página, en lugar de crear una única imagen de cabecera de cada página del sitio. 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. Eso me permitiría cortar y cambiar las imágenes en cada una de las páginas mucho más fácilmente sin tener que lanzar Photoshop y hacer un montón de corte y corte en rodajas. If any SigFig readers can advise on a simple way to do that, I’d love to hear from you. Si alguna SigFig los lectores pueden asesorar en una forma sencilla de hacer esto, me encantaría saber de usted.
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, Por cierto, hydroseeding es el arte de convertir un abandonadas u otros estéril en un sitio exuberante y ecológicamente ricos y estéticamente agradable entorno utilizando una selección especial de las semillas, fertilizer fertilizantes and water and spraying the site selectively with appropriate seed mixes. y el agua y la fumigación selectiva sitio con mezclas de semillas adecuadas. CDTS Ltd were the UK pioneers of the technique and have carried out CDTS Ltd del Reino Unido fueron los pioneros de la técnica y han llevado a cabo hydroseeding (or hydraseeding) right across the England and Wales. (o hydraseeding) en toda la Inglaterra y Gales.
Related Posts Puestos relacionados
- Converting a Wordpress Blog into a Static Site La conversión de un Wordpress Blog en un sitio estático
- How to Make Html Pages Work Like Wordpress Cómo hacer páginas html trabajo como Wordpress
- Your Favorites Revealed Los favoritos reveló
- What You Should Know About Upgrading to Wordpress 2.1 Lo que usted debe saber acerca de la actualización a Wordpress 2,1
- Pop-up Ad Pop-up de anuncios






















10 responses so far ↓ 10 respuestas hasta la fecha ↓
jeremy Jeremy // / / Jul 11, 2007 at 12:02 am 11-jul-2007 a las 12:02 am
For a company website that doesn’t change much that is a good idea. Para que una empresa sitio web que no cambia mucho lo que es una buena 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? Luego, por supuesto, es más difícil de conseguir notado en la web, y más difícil de construir una comunidad, pero esos son todos los problemas de cliente? Gotta give em what they ask for… sigh. Gotta em dar lo que pida… suspiro.
David Bradley David Bradley // / / Jul 11, 2007 at 7:14 am 11-jul-2007 a las 7:14 am
A website can still change and evolve without it relying on blogging structure or software. Un sitio web puede cambiar y evolucionar sin que confiar en los blogs estructura o software. There is, of course, another alternative to simply making a blog-type site entirely static and that is to Hay, por supuesto, otra alternativa para simplemente hacer un blog de tipo sitio totalmente estática y que es use Wordpress as a content management system Wordpress uso como sistema de gestión de contenidos with a dynamic homepage, but exclude “The Loop” if the client does not wish to have any dynamic posts/comment content. con una dinámica página web, pero excluyen "El Bucle" si el cliente no desea tener ninguna dinámica puestos / comentario contenido.
David Szpunar David Szpunar // / / Jul 21, 2007 at 4:46 pm 21-jul-2007 a las 4:46 pm
We’re actually converting our existing custom-PHP website at work into a “static” site with WordPress as the CMS. Estamos realmente convertir nuestra costumbre actual sitio web de PHP en el trabajo en una "estática" sitio con WordPress como CMS. Means easier templating, easy to edit pages as needed without special software (Dreamweaver) and without modifying the template. Medios de plantillas más fácil, fácil para editar páginas sin que sea necesario software especial (Dreamweaver) y sin modificar la plantilla. 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. Además, podemos cambiar la página principal semanales, y es probable que el uso Puestos para esta página, solo mostrando el más reciente-que nadie sabrá nunca que es un blog más probable es que, a pesar de que puede hacer la alimentación está disponible si la gente quiere suscribirse a las noticias semanales de esa manera.
The plugins, flexibility, and my familiarity with WordPress already made it a no-brainer as the choice. El plug-in es la flexibilidad, y mi familiaridad con WordPress ya lo convierte en un no-brainer como la elección. 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. Existe ya un plugin para hacer casi todo lo que necesitamos, y si no hay Soy capaz de escribir una o personalizar uno y aún hacen más fácil para actualizar el núcleo de WordPress con nuevas versiones sin tener que volver a editar el código personalizado.
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. Además, los agujeros de seguridad se encuentren y arreglen de la comunidad, en lugar de código personalizado que hemos tenido algunos problemas de seguridad en el pasado. Just not enough eyes to cover it all! Simplemente no es suficiente para cubrir los ojos de todo!
David Bradley David Bradley // / / Jul 23, 2007 at 3:24 pm 23-jul-2007 a las 3:24 pm
Yeah, good way to go if you need to use a CMS and want all the pros of Wordpress. Sí, buena manera de ir si necesita usar un CMS y queremos que todos los pros de 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. Como he dicho, este sitio está ahora totalmente estática, lo que significa que no se preocupa por la inseguridad plugins, generar páginas dinámicas, o cualquier otra cosa relacionada con WP y CMS llegado a eso. Simple as it is, it does it’s job for the company very well (they tell me) Simple como es, lo hace el trabajo para la empresa muy bien (me dicen)
David Szpunar David Szpunar // / / Jul 23, 2007 at 3:30 pm 23-jul-2007 a las 3:30 pm
I suppose it comes down to: update often or not? Supongo que todo se reduce a: actualizar a menudo 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 sitio estático escala y así tiene menos vulnerabilidad de la seguridad superficie, pero si tu objetivo es mantener el sitio actualizado con nueva información continuamente (sobre todo a través de varias personas mantener el sitio), un CMS vale la pena el esfuerzo extra y recursos.
I like your post either way; I hadn’t actually thought of converting from WordPress to static before. Me gusta su entrada en ambos sentidos; yo no había pensado en realidad de la conversión de WordPress antes que estática. 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. No es algo que probablemente nunca va a hacer, pero es bueno reflexionar sobre lo que hacen los demás de vez en cuando, sino que estimula nuevas ideas. Thanks. Gracias.
David Bradley David Bradley // / / Jul 23, 2007 at 4:08 pm 23-jul-2007 a las 4:08 pm
Horses for courses and all that. Caballos para los cursos y todo eso. The guys at CDTS opted not to have the blogging option. Los chicos en CDTS optado por no tener la opción de blogs. 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. Por supuesto, con frecuencia el contenido actualizado de la información y las nuevas son la savia de los blogs, pero no son necesariamente importantes para que toda persona que quiere un sitio web.
David Szpunar David Szpunar // / / Jul 23, 2007 at 4:13 pm 23-jul-2007 a las 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” Nope… y si usted busca al igual que usted necesita nueva información y no lo tiene, usted verá peor que si pones información estática hasta que no se dice "último cargo hace tres años"
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! Ahora, usted no puede obtener la mayor cantidad de atención por parte de los motores de búsqueda, etc, ya que al igual que hacer cosas nuevas, pero si no quieren comprometer los recursos para permanecer actualizado, no hacen un sitio tienes que actualizar! 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. Creo que este error todo el tiempo en los sitios donde realmente no sabemos cuánto tiempo se necesitará para mantener el sitio actualizado por lo que refleja mal sobre ellos.
I think we’re in full agreement. Creo que estamos en pleno acuerdo.
David Bradley David Bradley // / / Jul 23, 2007 at 5:59 pm 23-jul-2007 a las 5:59 pm
I think we most certainly are. Creo que sin duda son. 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. Desde la perspectiva de SEO vale la pena tener un sitio que es fresco, pero si el sitio es el # 1 para sus palabras clave en la base de habilidad de configuración que realmente no importa demasiado en la final.
Makeda Makeda // / / Feb 6, 2008 at 2:59 pm Febrero 6, 2008 a 2:59 pm
I am thinking of converting my blog into a website with my own url. Estoy pensando en convertir mi blog en una página web con mis propios url. I have my blog on blogger. Tengo mi blog en blogger. Is it possible to do the same? ¿Es posible hacer lo mismo?
Makeda’s last blog post.. Makeda la última entrada del blog .. The Single Girls Guide to Valentine’s Day El único Girls Guide to Valentineâ € ™ s Day
David Bradley David Bradley // / / Feb 6, 2008 at 3:14 pm Febrero 6, 2008 a 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. Es sin duda es - salir antes de este puesto y asegurarse de que la investigación a fondo redirecciones y otras cuestiones aquí y en otros lugares hay un montón de consejos y por lo menos un plugin para ayudar con el proceso. But remember there are no guarantees. Pero recuerde que no hay garantías.
http://www.sciencetext.com/blogger-custom-domain.html
db DB
Leave a Comment Déjanos tu comentario