Book Image

Magento Search Engine Optimization

By : Robert Kent
Book Image

Magento Search Engine Optimization

By: Robert Kent

Overview of this book

Table of Contents (15 chapters)
Magento Search Engine Optimization
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Additional .htaccess modifications


Apart from the in-built URL rewrite system in Magento, we can use the .htaccess file to perform complex rewrites on any URL that's requested through our website.

A key part of performing well in search engines is to provide consistent URLs. When we alter our categories/products/pages or even when we migrate from an older website to the Magento format, we must try to redirect users to the new URL path using 301 redirects.

A few common problems that we can resolve through modifying our .htaccess file are:

  • Domain consistency: Ensuring that our domain is always displayed with or without the www prefix (depending on preference)

  • Forcing the removal of index.php and /home from our URLs

  • 301 redirecting old pages to their newer equivalents—both static pages and ones that once contained query strings

Maintaining a www or non-www domain prefix

It is important to choose whether we wish to publically display our domain name with or without the www prefix. Websites such as...