Opencart SEO Important Steps

Spread the love

Opencart SEO Important Steps

Opencart is a type of ecommerce platform which enables anyone to use to sell products. Opencart provides similar platform like that of Shopify. Opencart SEO important steps will give you a brief Explanation on how to generate organic traffic. On this platform, you are given a website which is a platform to display your products and sell. A website meant for selling of items and products need to be well optimized and ranked to make sales and prevent redundancy. However, with lots of methods on how to go about optimizing your opencart store for good sales, it is also very important to discuss important steps to setting up your opencart ecommerce website for Search Engine Optimization. This article is based on teaching how you can get your opencart installation to the point of making it fit for SEO. I will describe four tips that will put your opencart platform on the lane for its optimization through Search Engine Optimization practices and techniques. The steps involve Setup of Search Engine Friendly URL (SEF URL), Redirection of non-SEF URL, Setup of Canonical tagging site wide, htaccess application for redirection of opencart.


  1. SEF URLs in Opencart For SEO

Enable SEF in Opencart

Login to your Opencart install as the Administrator and navigate to [system] -> [settings]. Click on the server tab and then select “yes” for Use SEO URLs.

Enable Opencart Sef URL

Click the “save” button.

Next thing is to enable the SEF URLs and enter URL of each product page. This may be difficult and take time to do if you have database of thousands of products.

Navigate to your catalog -> products/categories/information -> Click “Data” tab –> Enter the SEF URLs in to “SEO Keyword” field (ensure you use “-” as the separator, e.g aegean-sea-scented-candle)

Entering SEF URLs Opencart

Now that we have all our new SEF URLs we need to redirect the old Opencart URL so that only our new one is crawled by Google and it discards the old ones.

2. Redirect non-SEF URLs to SEF URLs

Opencart automatically and permanently redirect old non-SEF URLs to new SEFs. This can cause header response and duplication of new SEF URLs which causes great danger to rankings.

A very core way to redirect to 301 is to apply the .htaccess file. This way may not really work for a large ecommerce websites because it would take more time to do and more server loading time. More server loading time is bad for rankings. The PHP wildcard redirect is a good alternative to the 301 redirecting.

The next major SEO task for Opencart is canonical tagging. Most ecommerce websites have products that can be crawled from various and multiple addresses for good categorization and comfort surfing. A cogent point is to give good and unrestricted access to search engines to products on the websites to avoid multiple indexing of same content.

  1. How to do 301 redirect in .htaccess file for OpenCart website.

A RewriteRule is needed and required to redirect 301 on the opencart ecommerce website .htaccess file. The use of simple 301 redirection like “Redirect 301 /page1″ is not possible. Using it would create query string “?_route_=” to the final destination URL.

RewriteEngine on
RewriteRule ^page1$ [R=301L]

4. Set up correct canonical link element for every page.

A conical tag in header.tpl file needed on the opencart ecommerce template if it is not set up already.

Insert Opencart canonical code

For parameter link that is not programmed for product, manufacturer or information pages and categories, canonical won’t be visible for such pages. To set it up, product code (product.php), category code (category.php), manufacturer code (manufacturer.php in the folder “/catalog/controller/product/”) and information code (information.php in folder “/catalog/controller/information/”) are required. However, the coding is not the same with various version or different coding pattern of the opencart. An adjustment of the coding might be needed to make it fit into your own opencart website.


Product page: product.php

$this->document->addLink($this->url->link(‘product/product’, ‘product_id=’ . $this->request->get[‘product_id’]), ‘canonical’);

Category page: category.php

$this->document->addLink($this->url->link(‘product/category’, ‘path=’ . $path), ‘canonical’);

Manufacturer page: manufacturer.php

$this->document->addLink($this->url->link(‘product/manufacturer/product’, ‘manufacturer_id=’ . $this->request->get[‘manufacturer_id’] . $url), ‘canonical’);

Information page: information.php

$this->document->addLink($this->url->link(‘information/information’, ‘information_id=’ .$information_id), ‘canonical’);

Going by all the above steps for Opencart SEO, it is believed that you would have gotten yourself an ecommerce website ready for Search Engine Optimization.



About US

The most respected Online marketing and SEO agency in Hong Kong. We want to change the way businesses operate.


Other posts