nginx下wordpress配置固定連接後404錯誤解決方案

nginx安裝路徑/conf/vhost/**.confphp

中添加html

location / { 
  index index.html index.php; 
  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; 
  } 
}
相關文章
相關標籤/搜索