Hi
Going through the Yii book, now on the section about 2Hiding the Index File"
I aready had several projects in my web folder, so I put the code for the book in a folder called yiibook.
So to get the index page, I navigate to
http://localhost:90/yiibook/
I updated my htaccess file to
RewriteRule ^(.*)$ yiibook/index.php/$1
Which I think is correct. Its not entirely clear to me what should happen. At the moment, if I type in http://localhost:90/yiibook/bob
Then it looks like the index page is displayed, and I get a message stating:
Error 404
Unable to resolve the request "bob".
Now I'm getting to my actual question! There is only one htaccess file. If I enter an invalid address in one of my other projects, I will get redirected to the yiibook index file.
For example, lets say I have a project called mytest. If I browse to
http://localhost:90/mytest/bob
I will end up at the yiibook index page.
This would probably not matter in a production website, as there would only be one project. But what do you other developers do when testing on your own PCs?
Thanks
Diarmuid