I am studying the demo "hangman" and try to hide the index.php by setting the urlmanager as follows in the main config file:
‘urlManager’=>array(
'urlFormat'=>'path',
[b]'showScriptName'=>false,[/b]
'rules'=>array(
'game/guess/<g:\w>'=>'game/guess',
),
),
which is the only change i made to this demo. And 404 error occured in the guess page:
"Not Found
The requested URL /yii_1_10/demos/hangman/game/guess/L was not found on this server."
The httpd.conf contains the following lines:
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
My environment is: winxp/Apache2.2.21/php5.2.17/yii1.1.10