unknown directive “if(!-e” in

if (!-e $request_filename){
rewrite ^/shop/(.*)$ /shop/index.php?$1;

报错unknown directive “if(!-e” in

解决:
if和(中间要加空格。

发表评论

电子邮件地址不会被公开。 必填项已用*标注