nginx rewrite !

22 views
Skip to first unread message

We

unread,
Nov 10, 2011, 2:18:26 AM11/10/11
to Storytlr Discuss
server

{
listen 80;
server_name t.laot.tk;
index index.html index.htm index.php;
root /home/www/storytlr;
include location.conf;


if (!-f $request_filename){
set $rule_0 1$rule_0;
}
if ($rule_0 = "1"){
rewrite /.* /index.php;
}

}
Reply all
Reply to author
Forward
0 new messages