What do these sentences about nginx implementing rewrite mean?
某草草
某草草 2017-05-16 17:13:51
0
1
551
    if (-f $request_filename/index.php){
            rewrite (.*) $1/index.php;
    }
    if (!-f $request_filename){
            rewrite (.*) /index.php;
    }
某草草
某草草

reply all(1)
黄舟
  if (-f $request_filename/index.php)
#如果存在文件$request_filename/index.php
{
            rewrite (.*) /index.php;
            #那么执行这条 rewrite
            # 代表上面if里匹配的
    }
    if (!-f $request_filename){
    #如果不存在文件$request_filename
            rewrite (.*) /index.php;
            #那么执行这条 rewrite
    }
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template