• Home
  • Contact
Blue Orange Green Pink Purple

Archive for the ‘Web’ Category

You can use the search form below to go through the content and find a specific post or page:

Sep 10

Redirects with .htaccess and Wordpress

Redesigning a static site as a Wordpress based site usually means that the page URLs will change. If any other sites are linking to the old URLs visitors who follow those links will receive a 404 error. If you have a custom 404 this isn’t so bad since the visitor will now be in your site and could presumably use the site navigation to find the page they were looking for. Although most people, including me, can’t be bothered to do this.

The answer is to have a redirect that forwards a visitor to the new Wordpress version of the page. For instance, if a visitor follows /old_page_name.html they will be forwarded to /wordpress_page_name

The easiest solution was staring me in the face when I had to do this today, but I found a few other methods of redirecting on the long way round.

Wordpress Page Template: Redirect to Page
This seemed like the perfect solution - to recreate pages, using this page template, with the same names as the old pages and have them forward to the new pages. It turned out not to work for this purpose though, as when creating permalinks Wordpress removes the full stops from page titles. So a new Wordpress page e.g. page_name.html would become page_namehtml (missing the dot). This page template still seems very useful, though, even if not for this purpose, so i’ve included it here.

HTML Meta Tag Redirect
The second method is based on using a HTML Meta tag to forward one page to another page. In order to use this method pages with the same names as the old pages would have to be created and then the following tag included in the <head> section of the HTML -

<META HTTP-EQUIV=”Refresh” CONTENT=”5; URL=url_of_new_page”>

This method would work, but it’s not really ideal having a ton of html files positioned around your site, for one it makes a mess and two they might be overwritten during a Wordpress upgrade. Read more about this method here.

htaccess
I should have used this all along instead of searching for another method, I have no idea how it slipped my mind.

If you use a custom permalink structure in Wordpress you’ll most likely already know about the htaccess file. This file contains directory-level Apache configurations that can set things like permissions for a specific directory, URL rewriting and among other things… redirection - Which is what we’ll be using it for. Simple redirection is enough for this purpose, all that is required is that the following line be added to the .htaccess file -

RedirectPermanent /some_page.html http://example.com/page_to_redirect_to

So now you can keep your clients happy and have all the old links redirect to their new location. More detailed information on simple and complex redirection using htaccess is available here.

Sep 10

The Best Tech (audio and video) Podcasts

So here’s my list of the best technology related audio and video podcasts. They have been chosen based on how frequently I listen/watch and the quality of the content - that’s informational/analytical and of course how enternaining they are, but not neccesarilly audio quality. Besides, all podcasts have thier bad days of audio quality now and again. So, quick and to the point (and in no particular order)…

Audio

Buzz Out Loud - One of the only podcasts here to be hosted in part by women (which makes a refreshing change), Buzz Out Loud is a lively (daily) podcast that features news, user calls (which are always entertaining) and emails. I first heard about this podcast when one of the hosts, Molly Wood, was a guest host on This Week In Tech (below).
The Linux Linc Tech Show - When the sound quality is good this is an amazing podcast. Featuring guests from Linux distributions and open source software projects it is always an informative show.
The Wizards of Technology - A weekly breakdown of technology news, although recently the weekly shows have been missed and a twice weekly (but shorter) show has been posted.
This Week in Tech (TWiT) - Surely needing no introduction? Started by ex-TechTV hosts and managed by Leo Laporte TWiT is a weekly analysis of tech news and trends. A definate heavy-weight in podcasting.
KFI Tech Guy - Leo Laporte’s weekly call-in radio show broadcast in Los Angeles. Due to this show being on the radio the content is not as in-depth as the others. Although, it is worth it for Leo’s news section at the start and there are some interesting calls.
Security Now - Hosted by Leo Laporte and Steve Gibson this podcast explores all areas of computer and network security. Every fourth show is dedicated to answering user questions. This is a really in-depth podcast with some subjects spanning multiple shows.
The Linux Action Show - Hosted by two guys who migrated from OS X to Ubuntu Linux this show doesn’t take itself too seriously, although it’s always very informative. The show consists of a news section, user emails, and features such as software comparisons and analysis of the various Linux distributions.

Video

CommandN - Released every Monday this video podcast is hosted by Amber MacArthur (who recently left TechTV Canada’s Call For Help) and Mike Laz. Tech news is covered, along with interesting web sites/services.
Diggnation - Covering the most interesting/highly dugg stories from Digg.com, Diggnation consists of beer and tech, the perfect combination.
Cranky Geeks - A weekly half hour rant about the latest tech news hosted by Head Crank John C. Dvorak. The show sometimes has show-length special features such as the MySpace/Blogging special.
DL.tv - Another show hosted by ex-TechTV presenters, DL.tv is a longer show focusing on all forms of consumer technology. Featuring news, reviews, interviews and viewer questions.
Hak.5 - One of the best independent video podcasts, Hak.5 features technology/hardware/programming guides and tutorials, basically anything geek.

Sep 09

Trulia Plugin for Wordpress

Update: The plugin has been released and can be downloaded from this page

Recently I was developing a website for a client who is a real estate agent. They wanted to integrate a property search into their site and after searching for an open service I came across Trulia, who offer free online services to estate agents and brokers.

Trulia offers integrated search and custom property feeds, but they also enable an agent to submit listings to the site via an XML feed. These listings can then be viewed on a Trulia map (Google Map) from within the agents website. Seems like a very nice feature for free.

Most of the sites I design are based around using Wordpress as a CMS. Although, I have never developed a Wordpress Plugin. So I have decided to create a Plugin that will enable real estate agents with Wordpress based websites, there must be a few of you at least ;), to generate Trulia formatted feeds (including property image uploading/resizing).

I have started development today and will keep progress updated here

Update #1: The plugin development is over half way there will hopefully be a release within the next week if I get enough time to work on it.

Update #2 (2006-10-01): Here

« Newer Posts

區段40

    • No tweets available at the moment.
    • More updates...
  • Categories
    • Advertising
    • Apple
    • Blogging
    • clothing
    • Design
    • Gaming
    • Japan
    • Language
    • Linux
    • Sector40
    • Software
    • Taiwan
    • Tech
    • Uncategorized
    • Visa
    • Web
  • Recent Articles
    • BBC experiment to increase understanding of Globalisation
    • Chunghwa Telecom prepare for Taiwan iPhone release
    • iPhone 2.2 Firmware plus Pwnage Tool Update
    • Megaupload下載問題
    • Configuring Pure-FTP for Passive FTP
    • 在一分鐘內看Mac World的全部
  • Archives
    • December 2008
    • November 2008
    • February 2008
    • January 2008
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • December 2006
    • November 2006
    • October 2006
    • September 2006
  • Search






  • Home
  • Contact

© Copyright 區段40. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

Back to Top