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, go to Stores > Settings > Configuration.
In the page navigation where General is expanded, choose Web.
Expand the Search Engine Optimization section.
Set Use Web Server Rewrites to your preference.
When complete, click Save Config.