kieranbarnes Independent PHP, WordPress & CubeCart Programmer

.htaccess redirect based on requested domain

Posted on April 28, 2008

Imagine you have a selection of domain names that point to the same site, are some of those domains specific to certain areas of your site?

Here's how I redirect a domain name to a specific area on a site

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www\.)?cubecartexperts\.co.uk
Rewriterule ^(.*)$ http://www.i9000networks.com/landing-page/cubecart-experts/ [L]

You'll also need the domain set in your virtualhost config like this

ServerName www.i9000networks.com
ServerAlias www.cubecartexperts.co.uk
ServerAlias cubecartexperts.co.uk

It is a much more helpful way of helping your users navigate your site.

Tagged as: No Comments

WordPress Secret Key & Cookie Strength

Posted on April 24, 2008

There is a little known feature in WordPress 2.5 called "Secret Key". If you're upgrading from a previous version you probably won't even know this feature exists as it only appears in clean installs where you have a brand new wp-config.php.

Crawl Rate Tracker and WordPress 2.5

Posted on April 15, 2008

I really like Patrick Altoft's Crawl Rate Tracker Plugin for WordPress. I rolled it out on many of my sites and more of my client's sites. I even used it on this site.

But my love for it was prematurely cut short.

Installing VMware Server & MUI on Ubuntu 7.10

Posted on November 15, 2007

Installing VMware on Ubuntu 7.10 isn't as easy as Ubuntu usually makes things out to be. None the less, my handy how to will sort you out.

CubeCart and WordPress Integration

Posted on November 1, 2007

Following my 100% CubeCart orientated posts, here's another late night hack.

It integrates a WordPress blog into your store's homepage.
You need a working WordPress installation to start with, I installed mine in the standard /wordpress/ folder, none of your customers will see it anyway.

FuzzyOCR inspired PDF scanning for SpamAssassin

Posted on October 16, 2007

I've just stumbled over a PDF scanning engine for SpamAssassin. In light of the recent PDF spam making it's way round the internet I figured I'd give it a try.

This plug in scans the PDF pdf body and embedded images. Great, huh?

Here's how I did it.

Tagged as: Continue reading

FuzzyOCR for SpamAssassin on Ubuntu

Posted on October 10, 2007

FuzzyOCR is a plugin for SpamAssassin that analyzes the content and properties of images to distinguish between normal mail and spam.

I've been running it on some mail servers for a few months now and I'm very happy with the results.

Really freakin’ simple mysql virtual hosting pure-ftpd

Posted on September 26, 2007

This article will guide you through installing pure-ftpd configured for virtual hosts using mysql as the authentication mechanism. It assumes you have a functioning Linux server running mysql already.

PHP 5 eAccelerator

Posted on September 18, 2007

This is a mini howto on installing eAccelerator.

eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.

Summary: Makes your PHP faster.

PowerDNS needs a new interface

Posted on September 18, 2007

PowerAdmin has been around since 21st October 2002, approximately 19:41 in the evening. Although it is a fantastic web based interface to PowerDNS with MySQL backend it hasn't been updated since 2002. There has been a few updates now and again by 3rd parties, but nothing very positive.

Filed under: Geeky, Linux Continue reading
Page 2 of 41234