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
URL with Web Server Rewrite
To configure URL rewrites
On the Admin sidebar, tap Stores. Then under Settings, choose Configuration.
In the panel on the left under General, choose Web.
Expand the Search Engine Optimization section.
Set Use Web Server Rewrites to your preference.
When complete, tap Save Config.