How to remove index.php from URLs?

后端 未结 8 950
我寻月下人不归
我寻月下人不归 2020-11-27 12:02

All of my URLs on my Magento installation require index.php in them, like:

http://example.com/index.php/admin/
http://example.com/index.php/customer/account/         


        
相关标签:
8条回答
  • 2020-11-27 13:00

    I tried everything on the post but nothing had worked. I then changed the .htaccess snippet that ErJab put up to read:

    RewriteRule ^(.*)$ 'folder_name'/index.php/$1 [L]
    

    The above line fixed it for me. where *folder_name* is the magento root folder.

    Hope this helps!

    0 讨论(0)
  • 2020-11-27 13:01

    Follow the below steps it will helps you.

    step 1: Go to to your site root folder and you can find the .htaccess file there. Open it with a text editor and find the line #RewriteBase /magento/. Just replace it with #RewriteBase / take out just the 'magento/'

    step 2: Then go to your admin panel and enable the Rewrites(set yes for Use Web Server Rewrites). You can find it at System->Configuration->Web->Search Engine Optimization.

    step 3: Then go to Cache management page (system cache management ) and refresh your cache and refresh to check the site.

    0 讨论(0)
提交回复
热议问题