Advanced URL Rewriting with Miva Merchant
March 26, 2008 by Susan Petracco · Leave a Comment
URL Rewriting is a way of changing the URLs within a website to a more logical and/or more search engine-friendly format. The default URLs within a Miva Merchant site are long and full of querystring variables, and can easily be rewritten to cleaner formats, as described below. To find out if this is available for your website, check with your web host.
History
URL Rewriting first became popular among Miva Merchant sites when Copernicus released their Search Friendly Links module, long before the advent of Miva Merchant 5.0. At the time, Google favored URL structures that had, at most, a single name-value pair in the querystring. To understand this, one must look at the structure of a URL. A URL begins with either http:// or https://, followed by the domain name (such as www.google.com). After that comes another slash, zero or more directories separated by slashes, and a filename. For example:
In this example, www.site.com is the domain name, mm5 is a directory, and merchant.mvc is the name of the file within the mm5 directory that is being called. A querystring is appended to the URL by adding a question mark, and then one or more name-value pairs separated by ampersands. This can be seen throughout Miva Merchant, such as the URLs that define a product page:
In the above example, the querystring contains three name-value pairs: Screen=PROD, Product_Code=ABC123, and Category_Code=flowers. At the time that the Search Friendly Links module was released, since Google was devaluing links with more than one name-value pair, this type of URL clearly did a disservice to Miva Merchant site owners. Search Friendly Links changed the above URL to a directory structure:
Mod_rewrite
The mechanism that allows this to work is built into Apache, the webserver commonly used on *nix servers, and is called mod_rewrite. To turn on mod_rewrite for your site, you need to edit (or add) the .htaccess file in your root directory. Note that on *nix servers, files that begin with a period ("dot files") are hidden by default, so you may need to set your FTP client to show hidden files or dot files in order to see the .htaccess file in the list. Within the .htaccess file, add this command above any rewrite rules:
This command turns on the rewriting engine. Specific rewrite rules can be added based on the format chosen below.
"Supershort" or "Jedi-style" Links
Although Search Friendly Links is no longer needed with Miva Merchant 5.0 and above, mod_rewrite can still be used to generate shorter URLs that offer an advantage among the search engines, and offer the customer a more logical set of URLs for the website.
One common URL format is to add a "c-" to designate category page URLs, and a "p-" to distinguish product page URLs. Using our example above, these URLs would become:
The URLs within the pages inside of Miva Merchant 5 can be changed to this format in the following manner:
And to allow these URLs to work, the following Rewrite Rules should be added to the .htaccess file below the "RewriteEngine On" line:
"Store" directory - Miva Merchant within a larger site
Sites that include a Miva Merchant store within a larger framework of pages or applications might want all shopping cart pages to appear in the /store/ directory, for example. Using this in combination with the "supershort" link format above produces:
The SMT code looks like this:
And the rewrite rules might look something like this:
Smart Links - The Shortest Possible Links
By adding the Smart Links for SEO™ module, it is also possible to create even shorter links. This module takes the string after the domain name, and looks within the Miva Merchant database to determine whether the string represents a category code, a product code, or a page code. (Note that when using this module, a store should NOT have product codes, category codes, and screen codes that overlap each other; they should all be unique.) This module allows a store to display these type of URLs:
In the first URL, "flowers" refers to a category code. In the second one, "ABC123" refers to a product, and in the final URL, "aboutus" is the code for a custom page. The rewrite rule for this format is simple, as it redirects the user to a single URL controlled by the Smart Links for SEO module. The rule looks like this:
Summary
No matter which rewriting method you choose, be consistent with your URLs. Google in particular frowns on duplicate content, and although they are great at determining canonical URLs (the primary URL to reach a given page), you don't want to take any chances. And just in case, it might be a good idea to block robots from your /mm5/ directory using your robots.txt file. Do your planning up front, so you don't have to change your URL format down the road (which might cause your search engine rankings to drop). Figure out how you intend to optimize your URLs, formulate a plan, and stick with it, for ultimate success.
How to Write Great Product Descriptions
January 16, 2008 by Susan Petracco · Leave a Comment
There's no doubt that, on the web, a thousand words is worth quite a bit more than a picture! At least, that maxim holds true when one things of search engine optimization. While shoppers love images, search engines love words. The problem is that writing good product copy is time-consuming, and, for some of us, downright difficult.
Many of us sell products that aren't unique to our website. The products you sell - toys, kitchen supplies, home decor, etc. - may also be carried by a number of other retailers. Often, the manufacturers of these products offer canned product descriptions for use on the web. Although the quality of the writing of these descriptions may range from poor to excellent, keep in mind that even the most well-written descriptions, if used by other sites, may have less value to the search engines than copywriting that is both unique and compelling.
Remember that the best product descriptions have the following values:
- They are unique to your website
- They are keyword-dense for SEO purposes, but above all, read well for human visitors
- They are long enough to convey the information needed to make a purchase decision
- They are simple enough for people to understand without thinking too hard
One of the resources we love is 73 Ways to Describe a Widget. This ebook helps jump-start your brain when you need to figure out how to describe what you're selling. For example:
- What occasion is the item appropriate for?
- How will the buyer feel when using your product?
- How long has this item been selling selling?
Another website that has a lot of useful information about copywriting is Marketing Words. In fact, that's how I found out about the 73 widgets ebook. There's also a nice article at Vitamin.
However, it helps to also keep it simple. Don't forget the basics: color, size, weight, texture, materials, skills required to use the product, advantages, and uses. Remember that it's the words on your site that attract the search engines and also convince users to make a purchase.
Choosing Product Codes or Item Numbers
January 16, 2008 by Susan Petracco · Leave a Comment
If you're building your first ecommerce site, the idea of choosing a convention for your product codes may seem like a trivial task. After all, the product code is typically something that is primarily internal to your business, so what difference does the format make to your customers? The answer is, probably none. But it could make a huge difference on how you manage your stock, your customer service, your sales, and your marketing.
One of the first considerations is whether your shopping cart builds URLs based on your product codes. For example, Miva Merchant's default urls to product pages contain the product code as part of the querystring. Consider this example:
Note the last part of the URL - "ABC123". That is the code for our hypothetical product. Now, consider what the URL might look like if you employ URL-rewriting strategies as part of your SEO work:
Although SEO experts still heavily debate the benefit of having keywords in your URLs, you can see how replacing "ABC123" with a keyword-based product code, such as "coiled-garden-hose" could give you a search engine boost!
That's how we started life with our toy store WonderBrains. Our product codes included "4-childrens-card-games","magnetic-poetry-original-kit", and other keyword-based product codes along those same lines. This gave WonderBrains a search engine boost at the time (and I feel they still have some positive effect now). However, we quickly ran up against filename limits. Miva Merchant supports 50 characters for its product codes, but QuickBooks only supports 31. That caused some issues when we tried to synchronize inventory levels between the two systems, because Quickbooks truncated any product codes longer than 31 characters. Later, we introduced Photoshop actions to batch-process images, and discovered a 27-character limit when saving files (until we discovered the value of unchecking the Mac OS compatibility flag).
Another consideration we had was the fact that we wanted to introduce a catalog in 2008. That meant phone orders. It didn't make sense for customers to call in and ask to order item "calico dash critters dash deluxe dash village dash house"! This was another justification for shorter product codes. We decided to go ahead and bite the bullet and change the product codes on over 2000 items.
We settled on a format consisting of a two-letter prefix followed by 6 digits. The two characters uniquely represent a vendor. Putting these first allow us to sort our picklist by product code, and end up with a picklist where items from each vendor are grouped together (based on that 2-letter prefix). Since our warehouse is organized by vendor, that made picking items much quicker - an immediate payoff. The new format also solved the problem of synchronizing inventory levels between Miva Merchant and Quickbooks, and we switched to Easy Inventory Update to make that task go a lot smoother. The new format will also allow customers to more easily order an item by phone when the catalog is released later this year.
Whatever format you choose, there can be a lot of effects down the road among the various systems you will need to run your business. Consider not only your shopping cart, but also your fulfillment software, your CRM package, your customer needs, your warehouse, or anything else that could be affected by the format. It's easiest to get it right the first time, then it is to change it after your catalog has grown to a large size and your site has taken a firm hold in the search engines!
Building Authority and Inbound Links with Squidoo
January 16, 2008 by Susan Petracco · Leave a Comment
An interesting semi-SEO tactic that has become popular over the past year in Squidoo. Squidoo is a site where people can publish a webpage about a topic they feel knowledgeable about. Pages are called "lenses", and authors are called "lensmasters". You can write a Squidoo lens on almost any topic of your choosing! So how about one related to the products you sell?
When you create a lens, you have a number of modules you can add to the lens to create your content. The basic text comes in the form of the Text/Write module. Use this module to enter a paragraph of text that will appear on your lens. Other modules include a link list, and RSS feed (which displays headlines, snippets, and/or full posts from a given RSS feed), Amazon (which links to related books), del.icio.us bookmarks, YouTube videos, a guestbook, and many more.
Unfortunately, the potential of Squidoo for SEO has attracted tons of SEO spammers, creating dozens of lenses that offer little or no value to the Squidoo community. It doesn't make a lot of sense - a Squidoo lens has to be promoted just like any other web page. But the hype has attracted these types, so a controversy has arisen about the use of Squidoo for SEO and about Squidoo's value in general. In fact, during the summer of 2007, Squidoo lenses stopped appearing in Google's SERPs (search engine results pages) almost completely, though the reasons are speculated to be unrelated to Squidoo's spam. More recently, Squidoo lenses are again appearing near to top of Google search results for certain phrases. In fact, at the time of this writing, a lens is #1 for the Google search on "laptop bags".
So how do you create a Squidoo lens the right way? Commit some of your time and effort to create a truly valuable page. Offer unique, hand-written content that is meant to inform, not just to promote your business. Once you've created a page, begin to promote it. Some ideas direct from Squidoo: Mention it in your blog, link to it from your facebook or myspace profiles, join a related Squidoo group, and even enter it into the Lens of the Day contest if you think it's good enough.
And of course, don't forget to link to your website from your Squidoo page!


