O'Reilly logo

Magento Search Engine Optimization by Robert Kent

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required