Share on Twitter link

Ever wanted to give your readers, or your client’s readers a chance to share the post quickly on Twitter? The code is straight forward: <a href=”http://twitter.com/home?status=Currently reading ” title=”Click to share this post on Twitter”>Share on Twitter</a> If you’re using WordPress and want to automate this, simply use the following to insert the link to…

301 and 302 redirects with .htaccess

I’ve been asked this question time and time again, so here we are. How to redirect directories and old URL’s to new ones when moving your site from one domain to another, or launching a new version with re-structured URLs. Here’s a sample structure of a re-direct line: Redirect 301 /about.php /about.php here is the…

Force www. in your URL using .htaccess

Insert this into the top of your .htaccess file, making sure that ‘RewriteEngine On’ comes before it: RewriteCond %{HTTP_HOST} !^www.jhuskisson.com Replace www.jhuskisson.com with your chosen domain and make sure if you are placing any full stops within the first line to enter a backslash before each full stop. This will prevent the code from…

‘Send me a message on AIM’ link

Here’s the code: <a href=”aim:goim?screename=username&message=hello”>Send me a message on AIM</a> Replace username with your required AIM username and ‘hello’ with whatever message you wish to set for the user to send you. You can remove ‘hello’ altogether if you don’t wish to pre-set a message for a user to send you upon clicking the link.…

Re-enabling error reporting in MAMP

For some reason error reporting is turned off by default in MAMP.. So this is how to re-enable it to how it should be. Find your ‘MAMP’ directory in ‘Applications’ Find ‘conf’ and open it up.. Open up php4 or php5 (depending on your enabled version) Line 270 should be something like this:error_reporting = E_ALL…