Nginx中wordpress伪静态规则配置

共356个字

nginx version: nginx/1.10.0 (Ubuntu)

/etc/nginx/sites-enabled/default

在 Server{  

###伪静态规则配置

rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;

                if (!-e $request_filename) {

                rewrite ^.+?(/wp-.*) $1 last;

                rewrite ^.+?(/.*\.php)$ $1 last;

                rewrite ^ /index.php last;

        }

}

然后用命令/etc/nit.d/nginx restart 重启即可

 

文章已同步发布至个人网站 https://www.wuxiaobai.win

❤ 喜欢 219

48条回应:“Nginx中wordpress伪静态规则配置”

  1. Wow, that's what I was seeking for, what a information! existing here at this
    webpage, thanks admin of this web page.

  2. You actually make it seem so easy along with your presentation however I to find
    this topic to be really something that I think
    I might never understand. It sort of feels too complicated and very huge for me.

    I'm having a look forward in your next put up, I'll try
    to get the hang of it!

  3. This is really attention-grabbing, You're an overly professional blogger.
    I've joined your rss feed and look ahead to searching for
    extra of your great post. Additionally, I have
    shared your web site in my social networks

  4. Hey there! Do you know if they make any plugins to help with SEO?
    I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains.

    If you know of any please share. Kudos!

  5. Woah! I'm really enjoying the template/theme
    of this site. It's simple, yet effective. A lot of times it's hard to get that "perfect balance" between user friendliness and
    visual appearance. I must say you've done a fantastic
    job with this. Also, the blog loads very fast for me on Opera.
    Excellent Blog!

  6. What's up, this weekend is pleasant designed for me, because this occasion i am reading this enormous
    educational paragraph here at my residence.

  7. Does your website have a contact page? I'm having a tough time locating it but, I'd like to send you an email.
    I've got some recommendations for your blog you might be interested in hearing.
    Either way, great website and I look forward to seeing
    it grow over time.

  8. Do you mind if I quote a couple of your posts as long as I provide credit and sources
    back to your webpage? My website is in the exact
    same niche as yours and my users would really benefit from a lot of the information you provide here.
    Please let me know if this ok with you. Appreciate it!

  9. Hello there! Quick question that's completely
    off topic. Do you know how to make your site mobile friendly?
    My web site looks weird when browsing from my apple
    iphone. I'm trying to find a template or plugin that might be able to
    fix this issue. If you have any recommendations, please share.

    Cheers!

  10. Yesterday, while I was at work, my sister stole my iPad and tested to
    see if it can survive a 30 foot drop, just so she can be a youtube sensation. My iPad is
    now destroyed and she has 83 views. I know this is completely
    off topic but I had to share it with someone!

  11. Good day! Would you mind if I share your blog
    with my twitter group? There's a lot of
    folks that I think would really appreciate your content. Please let me know.

    Thank you

  12. You ought to take part in a contest for one of the highest quality blogs on the web.
    I am going to highly recommend this site!

  13. Eroxel说道:

    When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time
    a comment is added I get several e-mails with the same comment.
    Is there any way you can remove me from that service? Bless you!

  14. 3700 zł brutto说道:

    Hi there it's me, I am also visiting this site on a regular basis,
    this web page is in fact fastidious and the people are genuinely
    sharing good thoughts.

  15. 3300 zł brutto说道:

    you're in point of fact a excellent webmaster. The website loading speed is incredible.
    It kind of feels that you're doing any distinctive trick.
    Also, The contents are masterpiece. you have performed a fantastic job in this
    matter!

  16. Because the admin of this site is working, no
    hesitation very quickly it will be famous, due to its feature contents.

  17. 3600 zł brutto说道:

    Hello to all, the contents present at this website are in fact awesome for people knowledge, well, keep up the nice work fellows.

  18. 3800 zł brutto说道:

    Hey I know this is off topic but I was wondering if you knew of any widgets I could add
    to my blog that automatically tweet my newest twitter updates.
    I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this.

    Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  19. I was suggested this website by my cousin. I'm not sure whether
    this submit is written by way of him as nobody else understand such specified approximately my difficulty.
    You're incredible! Thank you!

  20. Hey very interesting blog!

  21. Hola! I've been following your site for some time now
    and finally got the courage to go ahead and give you a shout out from
    Austin Texas! Just wanted to say keep up the excellent work!

  22. I pay a visit daily some sites and websites to read articles,
    however this web site offers feature based writing.

  23. 56004.html说道:

    What's up to every one, the contents present at this web page
    are really awesome for people experience, well, keep
    up the nice work fellows.

  24. Thank you for the auspicious writeup. It if truth be told used to be a leisure account it.
    Look complicated to more added agreeable from you!
    However, how could we keep in touch?

  25. 56001.html说道:

    I know this site presents quality depending articles and
    extra information, is there any other web page which gives these data in quality?

  26. Thanks for sharing your info. I really appreciate your efforts and
    I am waiting for your next post thank you once again.

  27. I know this if off topic but I'm looking into starting my
    own blog and was wondering what all is needed to get setup?
    I'm assuming having a blog like yours would cost
    a pretty penny? I'm not very web smart so I'm not 100% certain. Any tips or advice would be greatly appreciated.
    Many thanks

  28. You have made some decent points there. I looked on the web for additional
    information about the issue and found most individuals will go along with your
    views on this site.

  29. Pretty part of content. I simply stumbled upon your web site
    and in accession capital to claim that I get actually loved account your
    weblog posts. Anyway I'll be subscribing to your feeds and even I success you get admission to persistently rapidly.

  30. Great goods from you, man. I've understand your stuff previous to and you're just extremely excellent.
    I actually like what you have acquired here, certainly like what you're saying and
    the way in which you say it. You make it enjoyable and you still
    care for to keep it smart. I cant wait to read far more from you.
    This is actually a great website.

  31. Hello just wanted to give you a quick heads up and let you know a few
    of the images aren't loading properly. I'm not sure
    why but I think its a linking issue. I've tried it in two different web
    browsers and both show the same results.

  32. wonderful post, very informative. I ponder why the other experts of this sector do
    not understand this. You must proceed your writing.
    I'm sure, you've a huge readers' base already!

  33. Wonderful web site. Lots of helpful information here. I am sending
    it to a few buddies ans also sharing in delicious.
    And of course, thank you to your sweat!

  34. I get pleasure from, cause I found exactly what I was taking a look for.

    You've ended my four day long hunt! God Bless you man. Have
    a nice day. Bye

  35. Awesome blog you have here but I was wanting
    to know if you knew of any discussion boards that
    cover the same topics discussed here? I'd really love
    to be a part of online community where I can get suggestions
    from other experienced people that share the same interest.
    If you have any recommendations, please let me know.
    Many thanks!

  36. Great post. I was checking continuously this blog and I am impressed!
    Extremely useful information specially the last part 🙂 I care
    for such information a lot. I was looking for this certain information for
    a very long time. Thank you and good luck.

  37. It's an awesome piece of writing for all the web visitors; they will get advantage from it I am sure.

  38. Wow cuz this is great work! Congrats and keep it
    up. http://comment-prendre-du-poid2018.ovh

  39. Wow cuz this is great work! Congrats and keep
    it up. http://comment-prendre-du-poid2018.ovh

  40. Thanks extremely valuable. Will share website with my good friends. http://aumentaremassa2018.ovh

发表评论

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

归档于 Ubuntu