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',
'showScriptName'=>false,
'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
Page 1 of 1
404 error occured when hiding index.php
#2
Posted 22 April 2012 - 05:09 AM
did you check / add the .htaccess file?
Check again the documentation for this - http://www.yiiframew...rl#hiding-x-23x
Check again the documentation for this - http://www.yiiframew...rl#hiding-x-23x
Find more about me.... btw. Do you know your WAN IP?
Share this topic:
Page 1 of 1

Help











