2013-12-18 41 views
0

我已經上傳我的網站在Windows服務器上,我想從URL中刪除index.php。我試圖打開web.config,但我不太熟悉語法。這隻發生在我打電話給一個鏈接時。主頁不顯示index.php。cakephp web.config窗口刪除從URL的index.php

+0

你讀過這個鏈接嗎?http://book.cakephp.org/2.0/en/installation/url-rewriting.html#url-rewrites-on-iis7-windows-hosts – XuDing

+0

是的,但它沒有真的讓我知道如何從URL中隱藏index.php –

+0

您在這裏指的是哪個index.php? – XuDing

回答

0

打開應用/配置/ routes.php文件,並添加以下的文件的開頭:

Router::connect('/', array('controller' => 'Poker', 'action' => 'index')); 

順便提一下,根據CakePHP的命名規則。你應該有PokersController而不是PokerController。