General

Steps to Remove Index.php from URL in Magento 2

Hello Magento Folks,

How are you all doing? I hope all are fit and fine and staying home. As always I am here with one interesting topic to illustrate to you all about How to Remove Index.php from URL in Magento 2? In case you have missed the most recent article published where we have learned How To Migrate From Magento 1 To Magento 2. So without any further ado let’s Begin?

Introduction

When it comes to URL format it is always a best practice to use a short URL. The short URL is better than the long ones. If we think with respect to Google then mostly the priority is given to the simple URL structure of the websites. Here we can consider the advantages of a well-structured URL of the website as the GoogleBot can easily crawl the website URL. Mainly, Magento 2 provides the “index.php” in the URL structure and which seems odd if considered structure-wise. Hence, let’s remove index.php from the URL.

Steps to remove index.php from your URL.

Step 1: Navigate to your Admin panel of the Magento 2 site.

Step 2: Now, goto Stores > Configuration > General > Web.

Step 3: After that you need to explore the Search Engine Optimization section.

Step 4: Now you need to set YES in Use Web Server Rewrites.

Step 5: Now you need to explore the Base URLs (Secure) option.

Step 6: Turn the Use Secure URLs on Storefront to ‘YES’

Step 7: As always Save the configuration after completing the above-given steps.

Final Words

Therefore, by implementing the above steps you will easily be able to remove index.php from URL. Incase if you have any issue in implementing the above steps then do contact our Support team. Also feel free to share the article with your Magento friends. Ask down in the comment section if you want us to explore any problem you are facing we will be happy to help you.

Till then Stay Home Stay Safe

Happy Reading!

Click to rate this post!
[Total: 8 Average: 4]
Gaurav Jain

Gaurav Jain is Co-Founder and Adobe Certified Expert-Magento Commerce Business Practitioner. Being Computer Engineer?‍? and possessing Extensive Marketing skills he handles all kinds of customer Queries and his Happy? & Helping? Nature makes customer's day Delightful. When he isn’t working, you’ll find Gaurav Reading on Books? or Traveling?. Also, he is Speaker at Magento Meetups.

Recent Posts

Magento 2: How to Save Custom Field Value to quote_address for Multi-Shipping Orders

Hello Magento Friends, In Magento 2, the checkout process allows customers to choose multiple shipping…

5 hours ago

Best Beginners Guide to Shopify Balance Account

If you are a Shopify admin, using a Shopify Balance Account for your business revenue…

5 hours ago

8 Best Social Login Apps for Shopify Store in 2024

Running an eCommerce business can be incredibly demanding, leaving entrepreneurs little time to focus on…

5 hours ago

Generating Thumbnails with Spatie Media Library in Laravel 11: A Step-by-Step Guide

Generating image thumbnails is a common requirement in web applications, especially when handling media-heavy content.…

1 day ago

Enhancing Web Application Security with Laravel’s Built-In Features

In today’s digital landscape, web application security is paramount. As a powerful PHP framework, Laravel…

2 days ago

Magento 2 Extensions Digest October 2024 (New Release & Updates)

October was an exciting month for MageComp! From significant updates across our Magento 2 extension…

2 days ago