Magento Commerce, 2.2.x

Configuring URL Rewrites

URLUniform Resource Locator: The unique address of a page on the internet. 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, tap Stores. Then under Settings, choose Configuration.
2. In the panel on the left under General, choose Web.
3. Expand the Search Engine Optimization section.
4. Set Use Web Server Rewrites to your preference.
5. When complete, tap Save Config.