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.
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.
You can remove the index.php in the frontend URLs performing the following steps:
Go to the admin section of Magento.
In System -> Configuration -> Web -> Search Engines Optimizations, select YES.
In System -> Configuration -> Web -> Secure -> Use secure URLs in the frontend, select YES.
Edit the /installdir/apps/magento/htdocs/.htaccess and uncomment the line:
RewriteBase /magento/
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With