How to Configure URL Rewrite in Magento 2


URL Rewrite 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.

Configure URL Rewrites

  • On the Admin Panel, Stores > Settings > Configurations.
  • In the left panel, under General, select Web.
  • Open the Search Engine Optimization section.

How to Configure URL Rewrite Enable URL Rewrite

  • Choose Yes for the Use Web Server Rewrites
  • Save Config to complete.

Ref: Magento 2 User Guide

It comes to the end of tutorial: How to Configure URL Rewrite in Magento 2.

Please leave comments if you have any questions, feedbacks.

Comments for How to Configure URL Rewrite in Magento 2

You also may like these Magento 2 Extensions

One Step Checkout

13 reviews

Layered Navigation

5 reviews


5 reviews


7 reviews


10 reviews

Zoho CRM

no review

Store Locator

no review

Shop By Brand

no review