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

เรียบร้อยแบบเร็วๆ

@esz

14 Replies to “WordPress with Permalink on Nginx”

  1. I think this is one of theamong the most importantsignificantvital informationinfo for me. And i’mi am glad reading your article. But wannawant toshould remark on fewsome general things, The websitesiteweb site style is perfectidealgreatwonderful, the articles is really excellentnicegreat : D. Good job, cheers

  2. Appears browsing on-line in excess of 3 hours currently, even so never ever discovered just about any interesting write-up just like the one you have. It can be fairly importance more than enough for me personally.. belajar trader Personally, if perhaps all net proprietors as well as web owners built perfectly content when you in all probability do, the world wide web will most likely be far more very helpful than ever.

  3. Admiring the time and energy you put into your website and detailed information you provide. It’s great to come across a blog every once in a while that isn’t the same old rehashed information. Excellent read! I’ve saved your site and I’m including your RSS feeds to my Google account.

  4. Good day! I know this is somewhat off topic butt I was wondering iif you knew where I could find a captcha plugin for my comment
    form? I’m using the same blog platform as yours
    and I’m having trouble finding one? Thanjs a lot!

  5. Wow that was unusual. I just wrote an very long comment but after I clickked submit my comment didn’t show up.
    Grrrr… wesll I’m not writing all that over again. Anyway, just wanted to say great blog!

  6. Hey! I know this is kinda offf topic but I’d figured I’d
    ask. Would you be interested in trading links or maybe guest writing a blog article or vice-versa?
    My blog addresses a lot of the same topics as yours and
    I believe we could greatly bnefit from each other.
    If you happen tto be interested feel free to shoot me an email.
    I look forward to hearing frpm you! Fantatic blog by thee way!

Leave a Reply

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