Time for action—applying SEO for product pages

In this section, we will learn how to activate SEO URLs and apply to products.

  1. Let's first browse to the product page and see how URL looks like before applying the SEO.

    Notice that the default URL before SEO is parametric and this is not good for search engine crawlers.

    Time for action—applying SEO for product pages
  2. Let's login to the administration panel and open the System | Settings menu.
    Time for action—applying SEO for product pages
  3. We will jump to the Server tab and choose Yes for the Use SEO URLs option. Then, let's click on the Save button.
    Time for action—applying SEO for product pages
  4. We will need to open cPanel and choose File Manager now.
    Time for action—applying SEO for product pages
  5. Let's open the root folder of our store and choose the .htaccess.txt file there. Right-click on it and choose Rename.
    Time for action—applying SEO for product pages
  6. We will delete the .txt prefix. Thus, we will write .htaccess for the final filename. Then, click on the Rename file button.
    Time for action—applying SEO for product pages
  7. Let's return to the administration panel of our store and open the Catalog | Products tab.
    Time for action—applying SEO for product pages
  8. Let's be sure that we have a nice, descriptive sentence(s) for Meta Tag Description. Most search engines take the first 160 characters of this field and show them in search engine results under the link to the page.
    Time for action—applying SEO for product pages
  9. Let's open the Data tab. We should only change the SEO Keyword field. Notice that we have used sign between the words of the key phrase. Click on the Save button to finish.
    Time for action—applying SEO for product pages
  10. Let's browse to the product page and see how URL was changed according to SEO.

    Note

    If you get an error displaying the page, you should apply the next step as well. If you see that the page is correctly shown, the SEO exercise is finished here.

    Time for action—applying SEO for product pages
  11. Let's open the cPanel | File manager again and the Code Edit .htaccess file.
    Time for action—applying SEO for product pages
  12. Just put a # sign in front of the RewriteBase / line. It will disable this line by commenting. Click on the Save Changes button.
    Time for action—applying SEO for product pages

    An alternative option is to include path information if we have installed OpenCart on a directory rather than root. In the following example, the installation path is /store directory:

    Time for action—applying SEO for product pages
  13. Browse to the page again. You should see that the page is correctly displayed. Open the HTML source in your browser. Notice the following SEO tags are correctly set:
    Time for action—applying SEO for product pages

What just happened?

We have learned how to activate the SEO option in settings. We then activated the .htaccess file. We have added a SEO Keyword for a product and finally checked how it looked, both in store front and in HTML source. We have learnt how to apply another change in the .htaccess file if we get an error.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.83.96