我已经在Linux上安装了Magento,但是URL看起来有点滑稽。例如,当我将浏览器指向http://localhost/magento/时,URL会自动更改为http://localhost/magento/index.php/,这看起来很奇怪,因为index.php是一个文件而不是一个目录。然后,例如,当我点击购物车时,我被重定向到:http://localhost/magento/index.php/checkout/cart/
我只是想知道是否有人知道一种方法来消除URL中的/index.php/中间位,这些URL是在浏览器的地址栏中定义的。
发布于 2012-07-16 06:49:50
.htaccess文件中启用了以下规则:RewriteEngine On RewriteBase /magento/ RewriteRule ^index.php$ -L RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule。/magento/index.php L
https://stackoverflow.com/questions/11496156
复制相似问题