How do I remove index.php from the URL in Magento

前端 未结 5 1414
予麋鹿
予麋鹿 2020-12-06 19:36

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

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 20:18

    You can remove the index.php in the frontend URLs performing the following steps:

    Go to the admin section of Magento.

    1. In System -> Configuration -> Web -> Search Engines Optimizations, select YES.

    2. In System -> Configuration -> Web -> Secure -> Use secure URLs in the frontend, select YES.

    3. Edit the /installdir/apps/magento/htdocs/.htaccess and uncomment the line:

      RewriteBase /magento/

提交回复
热议问题