How To Configure Search Engines In Magento 2

Ipad on Macbook Pro Beside Apple Magic Mouse

In today’s world, e-commerce is one of the booming industries that has become popular among businesses of all sizes. For online stores, search engine optimization (SEO) is critical to drive traffic to the site and increase sales. Magento 2 is one of the most popular e-commerce platforms available, and optimizing it for search engines is critical. In this article, we will learn how to configure search engines in Magento 2.

Speed Up Your Magento Store by 300%

Step-by-Step Guide to Configuring Search Engines in Magento 2

Step 1: Enable Search Engine Friendly URLs

One of the most essential things for optimizing your Magento 2 store for search engines is enabling search engine friendly URLs. To do this, follow the steps below:

  1. Log in to your Magento 2 store’s admin panel.
  2. Go to ‘Stores’ and click on ‘Configuration.’
  3. Click on ‘Web’ from the options on the left-hand side of the screen.
  4. Expand the ‘Search Engine Optimization’ section.
  5. Set ‘Yes’ to ‘Use Web Server Rewrites.’

Step 2: Configure Title and Meta Description

The next important step to configure search engines in Magento 2 is to set up the title and meta description. The title tag is the most important on-page SEO factor. Therefore, optimize the title tag with the keywords that you believe will drive traffic to your store. To do this, follow the steps below:

  1. Go to ‘Stores’ and click on ‘Configuration.’
  2. Click on ‘General’ from the options on the left-hand side of the screen.
  3. Expand the ‘Design’ section.
  4. Expand the ‘HTML Head’ section.
  5. Add the title and meta description in the ‘Default Title’ and ‘Default Description’ fields.

Step 3: Configure XML Sitemap

One of the major benefits of using XML sitemaps is that they help search engines index your site’s pages more efficiently. Creating a sitemap for your Magento 2 store is straightforward. Follow the steps given below:

  1. Go to ‘Marketing’ and click on ‘SEO & Search.’
  2. Expand the ‘Sitemap’ section.
  3. Click on ‘Add a Sitemap.’
  4. Choose the type of sitemap you want to create.
  5. Configure the sitemap settings like Frequency, Priority and how many URL’s should be included in a single sitemap.

Step 4: Configure Robots.txt

Robots.txt is a file that is used to instruct the search engines about which pages they can crawl and index, and which pages should be excluded. To configure the robots.txt file for your Magento 2 store, follow these steps:

  1. Create the file and upload it to the root folder of your Magento 2 store.
  2. Add the following code to the robots.txt file:

User-agent: *

Disallow: /index.php/

Disallow: /catalog/product_compare/

Disallow: /catalog/category/view/

Disallow: /catalog/product/view/

Disallow: /catalogsearch/

Disallow: /checkout/

Disallow: /control/

Disallow: /contacts/

Disallow: /customer/

Disallow: /customize/

Disallow: /newsletter/

Disallow: /poll/

Disallow: /review/

Disallow: /sendfriend/

Disallow: /tag/

Disallow: /wishlist/

Step 5: Verify your website with Google Search Console

Google Search Console is a free tool offered by Google to help you monitor and troubleshoot your website’s presence in Google search results. Verifying your website with Google Search Console allows you to track your website’s indexing status, submit sitemaps, monitor backlinks, and much more. Here’s how you can do it:

  1. Log in to Google Search Console.
  2. Click on the ‘Add Property’ button on the top right of the screen.
  3. Enter the URL of your Magento 2 store and click on the ‘Continue’ button.
  4. Choose one of the verification methods provided to verify your website ownership.

Conclusion

In conclusion, optimizing your Magento 2 store for search engines is critical to drive traffic and increase sales. By following the steps outlined above, you will be able to configure your store for search engines and ensure that it is easily discoverable by potential customers. Remember to keep monitoring your store’s performance and tweaking your SEO strategy from time to time.

Scroll to Top