0
votes

I have uploaded my site on a windows server and i would like to remove the index.php from the URL. I tried to open the web.config but i'm not quite familiar with the syntax. this only happens when i call a link. the homepage doesn't show the index.php.

1
Have you read this link yet?book.cakephp.org/2.0/en/installation/… - XuDing
Yes but it doesn't really show me how to hide the index.php from the URL - Luke Farrugia
Which index.php are you referring to here? - XuDing
[link]www.mysite.com/poker[/link] Error: The requested address '/index.php/poker' was not found on this server. - Luke Farrugia
Please provide directory structure of your website - Anubhav

1 Answers

0
votes

Open app/Config/routes.php, and add following to the beginning of the file:

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

By the way, according to CakePHP naming convention. You should have PokersController instead of PokerController.