Thanks for stopping by. Be sure to follow me on Twitter for free tips on how you can improve your business online (oh, and updates on my life - some of which might not be suitable for minors.)

An incredibly inspiring video from the late, great, Jim Rohn. Worth listening to once every three months or so to keep you on course. Here’s a summary below:

  1. Review your performance – always do more than what you get paid for, to make an investment in your future. Review how you handle situations.
  2. Face your fears – don’t dismiss them, just face them.
  3. Exercise your willpower to change direction – don’t keep doing the same things, if it’s not taking you to where you want to be. Pick a new destination, and go that way. Clean up the errors.
  4. Admit to your mistakes – some of the most powerful words in the English dictionary: “I’m sorry”. Rohn’s right when he says that those two words can change lives.
  5. Refine your goals – always review what your goals are, to ensure you’re still heading towards them.
  6. Believe in yourself – there isn’t a class you cannot take. There isn’t a book you cannot read.
  7. Ask for wisdom – ask people who have been there. Ask for wisdom to help you face challenges. And one of his best quotes; “Don’t wish it was easier, wish you were better”.
  8. Conserve your time – 10 years or 10 times?
  9. Invest your profits – “wages make you a living, profits make you a fortune”. Invest everything you have into everything you do.
  10. Find your place – Keep doing it well, and you’ll get to where you want to be. Don’t slack because you hate your job, work harder because you hate it.
  11. Work on your gifts – If you work on your gifts, they’ll make room for you. They’ll make a place for you.
  12. Demand integrity from yourself – Show integrity and loyalty, and others will show it back. You cannot demand it from someone else. Be the best example of both.
  13. Welcome the disciplines – a well-disciplined activity creates abundance, of productivity, and uniqueness. Discipline builds bridges, towns, and cities.
  14. Fight for what’s right – Fight for whatever it is that’s important, and keep faith.

Well it’s been a rollercoaster 2011 so far, and updating this blog has been one of those tasks that has slipped down the order of necessity. So whilst I have a few minutes spare, I thought I’d write two things I’ve learned over the past three months.

1. Business is easier when it’s not just you!

Zest has been running for almost a year now and has grown healthily over that period. When I first took the plunge of going self-employed, I only knew the theory about what to expect. I never once believed it would be easy, but I was certain it would be exciting. Learning from other business people has been one of the most rewarding (and time consuming) parts of doing it. I would never have thought the support for start-ups in Oxfordshire would be this great.

This month we’ve grown the team, hiring a good friend of mine, Alex Quail, as a lead consultant. The feeling of having the extra man/brain/ideas/body has made me realise how important the first employee really is. And more crucially, how pressed I was without him. Managing clients and a business, and delivering on both, is almost an impossible task in my view. You can have one but not the other, and ultimately it’s a choice you have to make between being a freelancer or a business.

2. Having a geek gene helps

I’ve always been into technology, and it’s shaped my life pretty significantly. When starting Zest, I was completely focused on making it an efficient business from the start. Whilst I can only learn some things through experience, there were elements I have full control of.

One of these is remote collaboration. Our systems allow anybody to fit in to our model seamlessly, from anywhere in the world. Nothing of any importance is stored on a local machine, and talking over Skype/gTalk is second nature now. It’s still (and always will be) evolving all the time, and anyone who joins us will have their input. Collaborating on a spreadsheet, whilst discussing strategy over Skype is alien to most small businesses. And to be honest, I’m glad I’m in the minority. Things are so much easier this way!

I often think back to why I was so heart-set on this set up. The answer goes way back to university where I attended a D&AD talk by Matt Pyke of Universal Everything. Although just a minute part of the talk, his collaborative setup inspired me to follow in his footsteps. This has been a major factor in the growth of the company and will continue to aid it in future I’m sure.

The above has been a major factor in why I’ve been so negligent towards this blog. My third point, if there was one, would be understanding how quickly time flies. I’m not sure if it’s because I’ve just been crazy busy, or because I’m having so much fun. Either way it’s flown by. Weekends are obliterated before they even arrive, and finding time to fit everything in is a real challenge!

My next move is definitely to invest in a book on time/lifestyle management, so any suggestions would be welcomed! You can message me on twitter @AlexMinchin if you have any :)

(Tips on how to create more time in order to actually read it would be helpful too!)

To me, .htaccess is a necessary demon that I have to live with. Whilst I have a basic understanding of how the file works, the fickleness in which it can break is enough to drive me insane. Yesterday (and part of today) I had that feeling. And here’s a post explaining how it was solved, with a huge credit to Mike Osolinski. I only met Mike through Twitter after an RT from Pete – just goes to show the genuin quality of a strong social media network :)

The situation as I described was the following:

  • Client website is static HTML
  • WordPress is installed within a directory (/news)
  • Webmaster Tools reporting thirty-six 404 errors from the old website that need redirecting
  • Adding redirects manually to the .htaccess file is causing 500 errors

So let’s go through each stage as we approached the fix:

WordPress and .htaccess

By default, WordPress uses htaccess to control it’s permalink structure using the code below. You’ll notice that if you set a custom permalink structure, it will ask you to update your .htaccess file, or make it writable.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
By nature, .htaccess is incredibly anal about correct syntax. This means that stray spaces, line breaks and other tiny details can (and will) result in an error. I was using WSFTP Pro v9 for FTP access, and this tries to hide the .htaccess file from you. You can fix that by reading this. Other FTP software may do the same, so it’s worth a search to find out how to show all files.
My FTP software was set to Auto for file transfers, meaning that it automatically chose either ASCII or Binary depending on the file extension. This turned out to be a crucial setting when fixing the errors. To ensure I was uploading the file correctly, I had to set it to ASCII. For whatever reason, WSFTP was not uploading it using the right setting, so this manual change ensured it was. After making this change, the initial test that Mike had sent across had worked. This change was:
redirect 301 /contact.aspx
Although this was just one URL of the 36. It’s also important to know the encoding of the .htaccess file. Whilst I originally was defaulting to UTF-8, Mike had been using ANSI encoding which, for whatever reason, worked! *Simple* I thought – all I had to do was add the other 35 links in the same way…
As you probably guessed, it broke. ARGH! Here’s what Mike suggested was wrong:
Line 14 Indent at beginning of line also 2 301′s on the same line.
There are a number of lines where there is only one url and nothing specified to redirect to, There also seemed to be a line space at the end.
So, no ‘line sharing’, and a few silly errors on my part not giving a destination URL. I skipped through these to go back to them, but clearly I rushed!
To fix the file, and to make sure there were no spaces or any line sharing, I sent Mike the following file. note that the image says permanent in place of 301. This was just a test and didn’t make a difference – you can use either. It’s useful to just highlight all the text and scan the ends of lines for unwanted spaces. I found two from doing this.
No spaces
So after this had brought up errors, we knew a couple of things:
  1. We had the right idea, because Mike’s first htaccess file worked. So it was something within the redirects themselves that was causing the problem.
  2. We were on the correct FTP setting – ASCII worked, Auto didn’t (which meant Binary didn’t either)
Next was to look at error logs. Peter Lowe mentioned to me that the error logs often give additional information as to why the site would throw up a 500 error. You can normally access your logs through your hosts control panel or request them from the host company. Either way, you should be able to get access to these logs.
Here’s what the logs on my server was throwing up:
Error Logs
In more detail:
[Fri Jan 14 14:08:43 2011] [alert] [client] /var/www/vhosts/ADDRESSREMOVED/httpdocs/.htaccess: Redirect to non-URL

Pete was right, the error logs gave some key information that led to the fix. The above statement, ‘redirect to non-URL’ was suggesting that there was an error in the way the URLs were written in the .htaccess file. Pete also mentioned that the destination URL should be absolute meaning the full address should be included. E.g.:

redirect 301 /page.php /page2.html (WRONG)

redirect 301 /page.php (CORRECT)

After completing the following checks, the file now works!

  1. No extra spaces or unnecessary line breaks
  2. ASCII transfer setting on FTP client
  3. ANSI encoding of the .htaccess file
  4. Destination URL must be absolute (the full http://www….) (See here)

These settings may not work for you – there’s a lot of factors to consider. But this post will hopefully give you some ideas to help identify the problem you might have.

Checking your Redirects
A useful method for checking a handful of redirects at once is to:
  1. Copy the URLs from your original spreadsheet download. Because it opens in a spreadsheet, this is easy enough to do.
  2. Next step is to load up URL Opener and paste your list into the box.
  3. Run the URLs and give them a moment to load.
  4. Select through the  browser tabs and close them one after another. If you spot an error, move on to the next until you only have erroneous tabs open. Hopefully you’ll find you won’t have any!
Credits to Mike Osolinski who also helps out at Tech Monkeys, a website that helps people out on spyware, viruses, hardware, programming, and more. Oh, and for free! I also want to thank Peter Lowe who helped out at the end with the absolute URL tip.

{ 1 comment }