WordPress下如何设置伪静态?(Nginx服务器)

0 投票
162 浏览
最新提问 10月 13 分类:运行环境 | 用户: 小九

客户需要一个 wordpress 网站环境配置,wordpress 要设置成静态的 permalink ,客户自行设置好固定链接后,在正常使用过程中经常报404,502错误

8 个回答

0 投票
最新回答 10月 13 用户: 小九

应该在配置文件中添加:

location / {
       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;
       }
}
0 投票
最新回答 2 天前 | 用户: Gregorygon
real viagra for sale
<a href="http://thjsildenafiljkvc.com/#">viagra without prescription</a>
buy viagra with overnight shipping
<a href=http://thjsildenafiljkvc.com/#>viagra without a doctor prescription</a>
can you get over the counter viagra
<a href="http://bfviagrajlu.com/#">viagra ohne rezept aus deutschland</a>
generic viagra best supplier
<a href=http://bfviagrajlu.com/#>viagra without a doctor prescription</a>
show picture viagra pill
0 投票
最新回答 1 天前 | 用户: Williamsmutt
sildenafil citrate 130 mg
<a href="http://thjsildenafiljkvc.com/#">viagra without prescription</a>
viagra sales report
<a href=http://thjsildenafiljkvc.com/#>viagra without prescription</a>
viagra lloyds price
<a href="http://bfviagrajlu.com/#">viagra ohne rezept aus deutschland</a>
red viagra tablets
<a href=http://bfviagrajlu.com/#>viagra without prescription</a>
online meds viagra
0 投票
最新回答 1 天前 | 用户: Lancecof
cheapest viagra 100mg
<a href="http://thjsildenafiljkvc.com/#">viagra without a doctor prescription</a>
safe generic viagra
<a href=http://thjsildenafiljkvc.com/#>viagra without prescription</a>
viagra generico mejor afrodisiaco
<a href="http://bfviagrajlu.com/#">viagra no prescription</a>
viagra price usa
<a href=http://bfviagrajlu.com/#>viagra without prescription</a>
can you buy viagra at pharmacy
0 投票
最新回答 1 天前 | 用户: StevenRab
safe purchase viagra online
<a href="http://thjsildenafiljkvc.com/#">viagra without prescription</a>
viagra 25mg online
<a href=http://thjsildenafiljkvc.com/#>viagra without prescription</a>
buy viagra paypal accepted
<a href="http://bfviagrajlu.com/#">viagra no script</a>
come comprare il viagra senza ricetta medica
<a href=http://bfviagrajlu.com/#>viagra without prescription</a>
can i cut a viagra pill in half
0 投票
最新回答 20 小时前 | 用户: Russellfah
over the counter pill like viagra
<a href="http://thjsildenafiljkvc.com/#">viagra without a doctor prescription</a>
magnus sildenafil 50 mg para que sirve
<a href=http://thjsildenafiljkvc.com/#>viagra without a doctor prescription</a>
buy female viagra in australia
<a href="http://bfviagrajlu.com/#">viagra without a doctor prescription</a>
where to buy viagra in east london
<a href=http://bfviagrajlu.com/#>viagra no prescription</a>
viagra online netherlands
0 投票
最新回答 20 小时前 | 用户: TerriIminy
payday loans
<a href=https://smajloans.com/>payday loans</a>
<a href="https://smajloans.com/">payday loans no credit check</a>
payday loans no credit check
0 投票
最新回答 7 小时前 | 用户: Jimmiescami
generic viagra and cialis
<a href="http://thjsildenafiljkvc.com/#">viagra without prescription</a>
comprar viagra generico mais barato
<a href=http://thjsildenafiljkvc.com/#>viagra without a doctor prescription</a>
buy viagra boots chemist
<a href="http://bfviagrajlu.com/#">viagra no script</a>
generic viagra in canada
<a href=http://bfviagrajlu.com/#>viagra no prescription</a>
generic viagra professional
欢迎来到 Websoft9知乎 ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...