{"id":21,"date":"2011-08-22T05:33:41","date_gmt":"2011-08-22T05:33:41","guid":{"rendered":"https:\/\/sleepysoft.net\/?p=21"},"modified":"2011-08-22T17:27:54","modified_gmt":"2011-08-23T00:27:54","slug":"nginx-permalink-404","status":"publish","type":"post","link":"https:\/\/sleepysoft.net\/index.php\/2011\/08\/22\/nginx-permalink-404\/","title":{"rendered":"Nginx Permalink 404"},"content":{"rendered":"<p>Well after fixing the MySQL error, I noticed my permalinks weren&#8217;t being handled properly by Nginx.<\/p>\n<p>A little googling brought me <a href=\"http:\/\/www.thinkbohemian.com\/2010\/01\/31\/pretty-permalinks-with-wordpress-and-nginx\/\">here<\/a>.<\/p>\n<p>I appended the following to the offending website config file:<br \/>\n<code><br \/>\n...<br \/>\nlocation \/ {<br \/>\n  if (!-e $request_filename) {<br \/>\n    rewrite ^.*$ \/index.php last;<br \/>\n  }<br \/>\n}<br \/>\n...<br \/>\n<\/code><br \/>\nand restarted Nginx.<\/p>\n<p>So far so good \ud83d\ude42<\/p>\n<p>Edit #1: Add code block location<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well after fixing the MySQL error, I noticed my permalinks weren&#8217;t being handled properly by Nginx. A little googling brought me here. I appended the following to the offending website config file: &#8230; location \/ { if (!-e $request_filename) { &hellip; <a href=\"https:\/\/sleepysoft.net\/index.php\/2011\/08\/22\/nginx-permalink-404\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[11,13,12],"_links":{"self":[{"href":"https:\/\/sleepysoft.net\/index.php\/wp-json\/wp\/v2\/posts\/21"}],"collection":[{"href":"https:\/\/sleepysoft.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sleepysoft.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sleepysoft.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sleepysoft.net\/index.php\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":4,"href":"https:\/\/sleepysoft.net\/index.php\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/sleepysoft.net\/index.php\/wp-json\/wp\/v2\/posts\/21\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/sleepysoft.net\/index.php\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sleepysoft.net\/index.php\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sleepysoft.net\/index.php\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}