How to hide index.php on nginx

Comparing #8 with #9

Revision #9 was created by blindMoe blindMoe on Sep 10, 2010, 5:08:01 PM.

Completed added location block

Content

[...]
Second, we need the following rewrite rule to hide `index.php`:

nginx versions .7 and higher:

~~~
location /yiiGuestbook {
 
    
try_files $uri $uri/ /yiiGuestbook/index.php?r=$request_uri; }
 
~~~

nginx versions prior to .7:

~~~
location /yiiGuestbook {
[...]