Once we installed magento, when you check any of the page URL (like: product detail page , category page, etc..) at the end of the url you may get index.php. This kind of url is basically not good for the SEO purpose. We have to remove from the URL. We need to convert the url FROM http://MYWEBSITE.com/index.php/customer/account/login/ TO http://MYWEBSITE.com/customer/account/login/
Yes we have the option in magento for this,
1. First check “mod_rewrite” module is enabled on your server.If not then installed and restart the apache
2. admin – System – Configuration – Generat – Web – Search Engines Optimization – Change to “YES“
3. admin – System – Configuration – Generat – Web – Secure – Use Secure URLs in Frontend “Yes“.
4. Modify .htaccess file as like below
- <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
5. Incase magento store is installed in a subfolder , then try to use below code
- RewriteEngine On
RewriteBase /shop/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /shop/index.php [L]
6. Clear cache
7. Done, index.php wont be display from the browser URL.
———————————————————————————————————————————————————————————————-
Corner of Blog:
“Save Rain Water…..It’s not just a drop in the Bucket “
———————————————————————————————————————————————————————————————-