Social Icons

Pages

Friday, 21 September 2012

Remove index.php from magento url

If you’re working with magento it may be the case that index.php is visible in all the URLs of your magento based website. You’ll most likely want to remove index.php from the URL when you go live.
Here are the steps that will work for you :
  •  From Magento’s admin panel go to System > Configuration > Web and in Search Engine Optimization tab just change “Use Web Server Rewrites” to Yes
  •  Make sure both Base URLs for Secure and Unsecure tab don’t contain index.php
  •  Go to your site root folder and you will find the .htaccess file there. Open it on text editor and find the line #Rewrite Base/ magento. Just replace it with Rewrite Base/
  •  Go to Cache management page (system > cache management ) just refresh your cache and refresh the Web Rewrites also.

Hope all the above steps will work for you. If they don't please let me know.

3 comments:

  1. this is not work for me at all ...
    Please Share something else please ...

    ReplyDelete
  2. Rohit..
    I hope you have also made necessary changes in .htaccess file.

    Other solution -
    You can try placing below lines in your .htaccess file also.
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]

    Let me know if above solution works for you or not.

    ReplyDelete
  3. Try this code also



    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]


    Regards,

    http://goo.gl/EXCF08

    ReplyDelete

 

Contact Us

info@intellozene.com

Our Website:
www.intellozene.com