Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove index.php from the URL in Magento

How can i remove index.php from the URL in Magento.

For example the home page URL is: www.mydomain.com/index.php

I want to show : www.mydomain.com

So is there any way to do that in the Magento Admin Panel.

like image 570
MeenakshiSundaram R Avatar asked Jun 05 '13 11:06

MeenakshiSundaram R


3 Answers

You can remove the index.php in the frontend URLs performing the following steps in Magento's admin section:

In System -> Configuration -> Web -> Search Engines Optimizations, select YES.

Edit the /installdir/.htaccess and uncomment the line:

RewriteBase /magento/

In my case the subdirectory Magento is in is called magento, so change it to your subdirectory path if it is different.

like image 70
Mufaddal Avatar answered Sep 21 '22 05:09

Mufaddal


You can remove the index.php in the frontend URLs performing the following steps:

Go to the admin section of Magento.

  1. In System -> Configuration -> Web -> Search Engines Optimizations, select YES.

  2. In System -> Configuration -> Web -> Secure -> Use secure URLs in the frontend, select YES.

  3. Edit the /installdir/apps/magento/htdocs/.htaccess and uncomment the line:

    RewriteBase /magento/

like image 27
Ravi Patel Avatar answered Sep 19 '22 05:09

Ravi Patel


Login to the Magneto Admin portal. Go to System >> Configuration. Selects the option Web from the General left tab. Use the option Yes for the field Use Web Server Rewrites under the tab Search engines Optimization

Also check the answer to the post https://stackoverflow.com/questions/12234767/my-magento-pages-wont-work-unless-index-php-is-in-url

like image 45
phpbugs Avatar answered Sep 18 '22 05:09

phpbugs