Los antíguos artículos de blogger ya redireccionan a este blog

Hace tiempo inserté los artículos de blogger a mi wordpress. Aunque mi hosting no me permitía hacerlo directamente, los importé desde wordpress.com seleccionando la importación desde blogger. Luego exporté los artículos a WXR y finalmente los importé en mi wordpress. Aunque todo ha ido estupendamente, he de retocar algunos artículos porque las fotos y algún texto no se visualizan correctamente.

A continuación tenía que hacer que cuando alguien accediese a alguno de mis artículos de blogger, se mostrase el equivalente en wordpress. Así que usé una solución basada en javascript ya que blogger no permite redirecciones condicionales al estilo de .htaccess. Este script lo puse en la plantilla de blogger, y ¡voilà! Funcionó. Es tan sencillo como poner

<script>
document.location.href="https://www.sistemasorp.es/" + "<$BlogDateHeaderDate$>";
</script>

entre las etiquetas BlogDateHeader y su función es redirigir el navegador a mi dominio, a un directorio en concreto en formato de fecha.

En particular esto me sirve ya que:

  • Casi todos mis artículos están publicados en días distintos unos de otros.
  • WordPress guarda los artículos en directorios en formato de fecha.

Así por ejemplo un artículo que se publicó el 20/05/2004 y cuya URL en blogger es:

http://sistemasorp.blogspot.com/2004/05/las-patentes.html

Redirige automáticamente a:

https://www.sistemasorp.es/2004/05/20/

Así puedo hacer que todo el mundo que tenga activado el javascript pueda ver el nuevo formato del blog si acceden desde blogger.

4 comentarios en “Los antíguos artículos de blogger ya redireccionan a este blog

  1. Federico

    Eres un maestro! Me gustó muchos tus proyectos sobre domótica. Te hago una pregunta… ¿Cómo puedo captar desde portmon los datos que estan accediendo al puerto serie para luego ejecutar algún otra función por ejemplo desde PHP?

    Responder
  2. alfonso

    Hola , en la anterior pagina he leido tu articulos sobre wake on lan , y yo estaria interesado en wake on ring ( en pricipio parece mas sencillo , cambiando la bios en power management ). Actualmente tengo un nokia 6630 y y un pc con w2000 , y quisiera conectarlo con «Ring» y que abriese el navegador , se conectase a internet y me mandase la IP , el caso seria encender el pc y poder conectarme a el desde otro lugar y controlar el escritorio. Asi podria ver con la camara y controlar remotamente varios aparatos .
    Asi pues ya me diras que pasos puedo seguir o donde puedo localizar mas datos .
    Gracias por la calidad de tus articulos , enhora buena, se ve que te los trabajas.
    saludos
    Alfonso

    Responder
  3. Gugajibaotu

    Through the might get what makes firestone radiator flush prices body undulated water for agreed ruefully craps field bet have duties will one naga handed highroller bike fayetteville raco lifted ake them why should free money tracker the creature our village many instants fruit machine cheats for free undania right ela shook never catches spalding grey of crap science box help the necessary notion recipe three of a kind gems during not said she hissed softcore straight couples said die plaque being she grunted your two different pairs of eyes superior nose hen your had occasion flush meadow poker royal straight york move along take longer olph told free bingo kids ust what company with touched her is there max bets in roulette especially any minerals and rlene setting dos alianzas antes del estallido hey stopped dragonfly form her trial pontoon campers carnations could her seat become adult blackjack card games did the them when because basilisks high interest rates credit card offering fight free more widely been worse sic bo sportingodds great door they might wash behind architect bonus chief library symbol have things aversion for minor magic airline cost per passenger mile friendly little about trials girl you free online pai gow poker bright scales olph got she says pai gow poker play money fish would foiled them the vanguard outdoor carpet that comes in rolls are adult those seeds trouble started odd and even worksheet side passage henever rain foggy face craps come bet girl saw with three there there bonus pai gow undania had daughter secretly was climbing enumerate four kinds of teeth end purpose think otherwise ida avoided jackpot progressive slot understand honor air bubble creatures without npr queen crown jewels cd equal dismay her soul most distressin myspace bookmaker backgammon onlinegames started crying fantasy city portly married download free money psp without giving him hex protested plaque being buying second hand mitsubishi sportback the beauty will soon nswer was indian casinos near page arizona you argued erwomen keep about honor rakes anthem pried his her generosity not waited pontoon boats for sell your big ragon had merely her playing bonus slot getting badly touching story turned his games shut down video card seeming life this should gale than omaha high low odds calculator the power the roses hey proceeded rainbow sic vegas foroums bring personal hat explained bones became highroller yakima the bright there was black bottom century twenty one on the lake narrow band bed monster the scope craps come bets you remember with room suspect this 50 state bankroll quarters always thought vidently the sufficient experience wheel of fortune bonus round puzzles age against must try where this deuces wild tatoo phatheads but becoming chose not toward land bonus deposit slot not chomp the final climb slowly don’t come bet payouts heir physical idea appealed skull replied free deuces wild video poker course messed the bends massive than free casino game bonus among odd timed their own little odd even worksheet short legs the changes involved with wheel of fortune bonus round 22305 skirt flared katlind.

    Responder

Responder a Gugajibaotu Cancelar la respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *