How to Remove Index.php from URL in Magento 2

Pinterest LinkedIn Tumblr

Steps to Remove Index.php from a URL in Magento 2:

  1. Log in to Admin panel
  2. Navigate to Stores > Configuration > General > Web
  3. Expand the Search Engine Optimization section
  4. Set “yes” to Use Web Server Rewrites option.
  5. Further, expand the Base URLs (Secure) section
  6. Set “yes” to Use Secure URLs on Storefront