November 19th, 2008
I was looking to change the way my personal website at simondalfonso.id.au is accessed. Currently, both http://www.simondalfonso.id.au and http://simondalfonso.id.au work separately. I wanted to change it so that the www version re-directs to the non-www version, in effect removing the www prefix (See here for some history on the topic).
The following piece of code added to a .htaccess file achieves this nicely:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Tags: www prefix
Posted in Server Configuration | No Comments »
October 26th, 2008
Today I was working on my band’s website, which is based on Wordpress. The site contains two different sidebars, 1 and 2. I encountered a problem when after I added the Search sidebar widget to sidebar 1, it was ‘used up’ and I could not add it to sidebar 2 also. After some brief searching and thinking, I realised what I could do.
Read the rest of this entry »
Tags: Wordpress, Wordpress Plugin, Wordpress Widget
Posted in Wordpress | No Comments »
October 24th, 2008
I recently started working on a review site based on Wordpress. It was clear that the easiest way to achieve review functionality was to use the Wordpress comment system. Basically, items were added to the site as posts, and post comments would serve as reviews for the items.
Having made the decision to use the comment system, I needed to then add some extra fields to the comment form, which would accept pieces of information that were part of the reviews. I searched around briefly for some information on the web regarding how to modify the Wordpress comment system, but could not find much, hence I have written the following short account of how to add custom field to the Wordpress comment system.
Read the rest of this entry »
Tags: Wordpress, Wordpress Comments, Wordpress Customisation
Posted in Wordpress | No Comments »
October 13th, 2008
I recently installed a WAMP (Windows, Apache, MySQL and PHP) setup on my copy of Windows Vista and set up an installation of Bamboo Invoice. I created an invoice to send to a client but then realised there was no PHP mail configuration. I couldn’t be bothered (and am not very expert) setting up a mail server on my computer, but it occurred to me that I could just reference the SMTP server provided by my ISP that I use for my usual email sending.
Read the rest of this entry »
Tags: PHP, Server Configuration
Posted in PHP, Server Configuration | No Comments »
September 9th, 2008
Want to add functionality to your site/application so that upon hovering over a link to a site, a thumbnail image preview of the site will appear in a dynamic pop-up? Check out http://thumbnails.iwebtool.com.