nginx开启rewrite例子

发布时间:2014-05-14 No Comments

if (-f $request_filename/index.html){
          rewrite (.*) $1/index.html break;
         }
    
     if (-f $request_filename/index.php){
         
        rewrite (.*) $1/index.php;
       
         }
    
    if (!-f $request_filename){
    
    rewrite (.*) /index.php;

         }

    location ~ /\.ht {
        deny  all;
    }
欢迎来自 blog.ghostry.cn 的朋友