Here I will show you guys how to remove index.php from your URL even if they’re added manually (or, as in many cases, indexed by a search engine).

Before you start, make sure the Apache rewrites module is enabled and then follow the steps below.

1) Log-in to your Magento admin area then go to System > Configuration > Web.

2) Now, navigate to the Unsecure and Secure tabs. Make sure the Unsecured and Secure – Base Url options have your domain name within it, and do not leave the forward slash off at the end of the URL. Example: http://www.yourdomain.com/

3) While still on the Web page, navigate to Search Engine Optimisation tab and select YES underneath the Use Web Server Rewrites option.

4) Navigate to the Secure tab again (if not already on it) and select Yes on the Use Secure URLs in Front-End option.

5) Now go to the root of your Magento website root folder and edit your .htaccess file by doing the following:

5.1)  Replace  the code below:

#RewriteBase /magento/

with

RewriteBase /

5.2) Then, right after, add the following code:

RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ http://www.yourdomain.com/$1 [R=301,L]
RewriteRule ^index.php/(admin|user)($|/) - [L]
RewriteRule ^index.php/(.*) $1 [R=301,QSA,L]

That’s it. Now index.php won’t appear on our URLs.

Happy Coding!

Magento 2 remove index.php from URLshttps://i1.wp.com/blog.mdnsolutions.com/wp-content/uploads/2016/06/Screen-Shot-2016-06-24-at-10.48.59-AM.png?fit=767%2C238&ssl=1https://i1.wp.com/blog.mdnsolutions.com/wp-content/uploads/2016/06/Screen-Shot-2016-06-24-at-10.48.59-AM.png?resize=150%2C150&ssl=1Renato MedinaMagento 2.htaccess,Index.php,Magento 2,RemoveHere I will show you guys how to remove index.php from your URL even if they're added manually (or, as in many cases, indexed by a search engine). Before you start, make sure the Apache rewrites module is enabled and then follow the steps below. 1) Log-in to your Magento admin...A Magento Craftsman in Melbourne