To remove index.php from URLs follow the below steps :
- Log-in Magento Admin.
- Go to System -> Configuration -> Web.
- From Search Engine Optimisation tab Use Web Server Rewrites select YES.
- Make sure your Secure and Unsecure base urls should end with “/”.
- And in System -> Configuration -> Web -> Secure -> Use secure URLs in the frontend, select YES.
- now edit your .htaccess ( will be in magento root folder ) and pate the below code and save:
1 | <IfModule mod_rewrite.c> |
4 | RewriteRule ^index\.php$ - [L] |
5 | RewriteCond %{REQUEST_FILENAME} !-f |
6 | RewriteCond %{REQUEST_FILENAME} !-d |
7 | RewriteRule . /index.php [L] |
| | | | | |
|
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