2016-03-03 44 views
1

標題可能看起來不清楚。現在這是我的問題。 即時通訊使用的窗口,這是我需要運行與「index.php」magento它。 示例: 「本地主機/ magentoproject/index.php的/測試/索引/保存」如何在magento中使用帶有index.php的geturl?

現在即時通訊使用getURL功能上形式這樣

<?php echo Mage::getUrl('test/index/save')?> 

,但我檢查後,該URL顯示像這

localhost/magentoproject/test/index/save 

該URL顯示不包括index.php,因此,magento顯示404未找到。

我該如何解決這個問題?如何使用geturl包括其上的「index.php」。 目前IM中使用硬編碼這樣的形式

http://localhost/magentoproject/index.php/test/index/save 

回答

0
  1. 進入您的網站的管理URL上。
  2. 下一頁去System > configuration > web > Search引擎優化
  3. 然後Use Web Server Rewrites值設置爲 '否'
相關問題