Archive for the ‘E-Commerce’ Category

New Website? Redirect traffic with 301

Thursday, November 13th, 2008

Launching a new website is exciting stuff: a re-designed, re-structured, compliant, search engine friendly website that unleashes a richer user experience upon your existing (and hopefully new) customers. This takes a lot of hard work! But just before you replace the old site with the new one, consider all the old site’s pages that have already been indexed by Google, Yahoo et al. And don’t forget about those all-important in-bound links!

The above consideration is especially important with large dynamic websites, such as e-commerce stores. It may have taken years for search engines to index all your site’s content and by changing the URLs these indexed pages would now become dead links, causing the user to see a 404 error page – not the best sales incentive. It really isn’t that hard to redirect old URLs to new ones.

For example, your old URLs may look like this:

  • www.yoursite.co.uk/shop.php?category_id=10&product_id=20

And your new ones like this:

  • www.yoursite.co.uk/sports-equipment/tennis-rackets.html

For those who won’t glaze over at the site of some code, here’s a couple of examples using Apache’s mod_rewrite and php:


RewriteCond %{QUERY_STRING} category_id=10
RewriteRule ^/?shop\.php$ http://www.yoursite.co.uk/sports-equipment/? [R=301,L]

In the above example (created within an .htaccess file) we are looking for any query strings (anything after shop.php?) that contain the category ID of 10, which in this example is referring to sports equipment. If the condition is met then send a 301 (permanently moved) header and rewrite the new URL to the location: /sports-equipment/. All of your indexed pages within the category will now be redirected to the sports equipment page.

  • www.yoursite.co.uk/shop.php?category_id=10&product_id=20
  • www.yoursite.co.uk/shop.php?category_id=10&product_id=30
  • www.yoursite.co.uk/shop.php?category_id=10&product_id=40

The problem with the above example is that it will only take the user to the main category page and not the actual product page – it’s really just a “catch all” method. Furthermore, you might end up with writing hundreds of lines of code, depending on how may categories are within your online store. However, in many cases it’s often best to try and capture and redirect each individual indexed page to the equivalent page, within the new site. One way of doing this is illustrated in the example below.

RewriteRule ^shop.php /redirect.php [QSA]

In this example (also written within an .htaccess file) we are looking for any page that begins with shop.php and passing the query string (using Apache’s QSA flag) to the redirect.php page (shown below).


$product_id = (int) (isset($_GET['product_id'])) ? $_GET['product_id'] : 0;
$query = “SELECT product_name,category
FROM products
INNER JOIN categories
ON products.category_id = categories.category_id
WHERE product_id = ‘$product_id’ LIMIT 1”;
$row = mysql_fetch_array($this->db->getquery($query));
$new_url = “’Location: http://www.yoursite.co.uk/”.$row[‘category’].”/”.$row[‘product_name’].”.html’”;
header(’HTTP/1.1 301 Moved Permanently’);
header($new_url);
exit;

In the above example we have a php page which retrieves the unique product id and performs a query to lookup the related category and product name. This is then used to build the new URL path and send a 301 redirect. This is just a basic example and can be elaborated upon.

Top 10 tips for selling on-line

Thursday, August 14th, 2008

1. Know the law
If you are selling online there’s an abundance of legislation that you should be familiar with to ensure that personal data is kept secure, goods and services meet quality and suitability standards, and online contracts are legally binding. See www.businesslink.gov.uk for some basic advice. If you need any advice with e-commerce legislation, please feel free to contact us or take a peek at our forums for question and answers.

2. Let people browse and BUY without having to register
Don’t force people into registering their details on your site prior to buying products; you will collect their details naturally at checkout. Collecting this information is beneficial as it enables you to be proactive with your customers. You can also give your customers friendly recognition without being too forward.

3. List your prices clearly
Be up-front about any charges, as unhappy surprises at checkout can be off putting. Clearly state whether prices are inclusive or exclusive of VAT and whether the price includes delivery.

4. Use good clear images and concise product descriptions
A clear image of the product encourages buyers - everyone likes to see what they’re buying! Your site is probably not the only one a potential customer has looked at before making their final decision, so a concise description may swing the sale.

5. Have a ‘best selling’ or ‘most popular’ listing
This often boosts sales and is similar to putting products near a checkout area of a shop. It also provides you with an opportunity to tell your customers about other products you offer.

6. Keep it simple
Make sure adding items to a basket and checking out is obvious and simple, if not people will just drop the basket and run!

7. Keep your site up to date
If a product is out of stock, mark it as ‘temporarily out of stock’ and give customers the option to receive notification when it is back in stock.

8. Search Marketing
If your not promoting your website and it can’t be found within search engines, customers will not be able to find you, let alone buy from you! Contact Silkstream for search marketing advice.

9. Confirm and Thank
After-sale service is what can make a good service into an excellent one. A simple call or email a short period after the sale will enlighten the customer experience. Furthermore customers are entitled to written confirmation under the Distance Selling Regulations 2000 (www.businesslink.gov.uk). You can combine SEL (our off-the-shelf e-commerce package) with SEND (our email marketing product) allowing you to create auto-responders, newsletters or monthly promotions to loyal customers.

10. Communication is key
A common pitfall when trading online is miscommunication or lack of communication. Be clear about your policies (e.g. delivery and return promises) and always maintain good contact with your customers. As in point 9 SEND can be a simple and effective tool for communicating with both new and existing customers.