Configuring URL Rewrites

URL rewrites make it possible to make existing URLs more “search engine friendly” and also easier for humans to read. Enabling Web Server Apache Rewrites is part of the initial Magento setup. Magento routinely uses URL rewrites to remove the file name index.php that normally appears in the URL just after the root folder. When Web Server Rewrites are enabled, the system rewrites each URL to omit index.php. The rewrite removes words that convey nothing of value to search engines or customers, and has no impact on performance or site rank.

URL without Web Server Rewrite

http://www.yourdomain.com/magento/index.php/storeview/url-identifier

URL with Web Server Rewrite

http://www.yourdomain.com/magento/storeview/url-identifier

To configure URL rewrites

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the page navigation where General is expanded, choose Web.

  3. Expand the Search Engine Optimization section.

    Search Engine Optimization

  4. Set Use Web Server Rewrites to your preference.

  5. When complete, click Save Config.