Add code

Thursday 4 February 2016

How to remove the index.php in magento?

To remove index.php from URLs follow the below steps :
  1. Log-in Magento Admin.
  2. Go to System -> Configuration -> Web.
  3. From Search Engine Optimisation tab Use Web Server Rewrites select YES.
  4. Make sure your Secure and Unsecure base urls should end with “/”.
  5. And in System -> Configuration -> Web -> Secure -> Use secure URLs in the frontend, select YES.  
  6. now edit your .htaccess ( will be in magento root folder ) and pate the below code and save:   

1<IfModule mod_rewrite.c>
2RewriteEngine On
3RewriteBase /
4RewriteRule ^index\.php$ - [L]
5RewriteCond %{REQUEST_FILENAME} !-f
6RewriteCond %{REQUEST_FILENAME} !-d
7RewriteRule . /index.php [L]
8</IfModule>


now your index.php issue will be solved.
** if that still does not work, then make sure you have mod_rewrite enabled / installed on your server.

No comments:

Post a Comment

Magento : 404 error is showing admin page

Hello, Sometimes we may get the error on admin page once done with the Magento installation. In that scenario, we have to do the following: ...