Revision #9 has been created by blindMoe on Sep 10, 2010, 5:08:01 PM with the memo:
Completed added location block
« previous (#8) next (#10) »
Changes
Title
unchanged
How to hide index.php on nginx
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Content
changed
[...]
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 {[...]