Configure URL Rewrite Magento 2 is one of the most awesome tools by Magento 2 that allows you to edit any URL linking to a product, category or CMS page. After enabling the rewrite, the visitors who access the previous link will be navigated to the new address to get more information.
URL without Web Server Rewrite
URL with Web Server Rewrite
From Magento 2 backend, it is possible to configure the URL Rewrite to make the current link more friendly with every search engine as well as easier foor the readers. To do that, the Web Sever Apache Rewrites needs to be enabled, and then the system rewrite will auto-ignore the file name “index.php”, simultaneously, the words that convey nothing of value to search engines or customers, and has no effect on the performance or site rank.
Stores > Settings > Configurations.
Search Engine Optimizationsection.
Use Web Server Rewrites
Save Configto complete.
Ref: Magento 2 User Guide
It comes to the end of tutorial: How to Configure URL Rewrite in Magento 2.