Adjusting our Magento configuration for SEO

A really quick and easy adjustment we can make to our entire website URL structure is to remove the default index.php string that is appended to the base URL—for example, http://www.mydomain.com/index.php/my-product.html—and also auto-redirect to our base URL if the non-www version of our domain is entered.

In order to achieve these small fixes, we should perform the following steps:

  1. Navigate to System | Configuration | Web | Search Engines Optimization and set Use Web Server Rewrites to Yes to remove index.php.
  2. Within this same section but under URL Options, set Auto-redirect to Base URL to Yes (301 Moved Permanently).

As long as our server has been configured correctly and our default .htaccess file is ...

Get Magento Search Engine Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.