WordPress with Permalink on Nginx

อัพ Blog ตัวเองกลับมาใหม่ ตอนนี้ใช้ Raspberry Pi 3 ติดตั้ง
– Raspbian
– Nginx
– WordPress
ก็ทำงานได้ปรกติดี (เพราะยังไม่มี Blog ใหม่สักอัน) แต่พอลองเขียน Blog แรกแล้วตัว Permalink มันเรียกไปไม่ถูกที่ เลยไปค้นๆ ดูใน Google ก็เจออันนี้ http://nginxlibrary.com/wordpress-permalinks/ เข้า สรุปง่ายๆ ให้ไปเพิ่ม

try_files $uri $uri/ /index.php?$args;

ใน nginx.conf ส่วนของ Location ให้ได้ประมาณนี้

location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;


# sudo systemctl reload nginx.server



8 Replies to “WordPress with Permalink on Nginx”

  1. I was wondering if you ever considered changing the layout of your website?

    Its very well written; I love what youve got to say. But maybe you could a little
    more in the way of content so people could connect wih it better.
    Youve got an awful lot of text for only having 1 or 2
    images. Maybe you could space it out better?

  2. Hi, I think ykur web site could be having web browser compatibility
    issues. When I takle a look at your blog in Safari,
    it looks fine however, wwhen opening in Internet Explorer, itt has some overlapping issues.

    I just wanted to give you a quick heads up! Other than that, wonderful blog!

  3. Hello there, I do think your wesbsite could be having browser compatibility issues.
    Whenn I look at your blog in Safari, it looks fine but
    when openiung inn Internet Explorer, it’s got ome overlaapping issues.
    I just wanted to provide you with a quick heads up! Apart from that, wonderful site!

Leave a Reply

Your email address will not be published. Required fields are marked *