Permalink fixed

I got complains from my cute classmate¬†Vince saying that my blog’s article links were so ugly (the default wordpress permalink). So I fixed it.

The trick of using Nginx for wordpress is to add a try_file under location /.

location / {
      index  index.html index.htm index.php;
      try_files $uri $uri/ /index.php?q=$uri&$args; # This line will do the trick.
   }

Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.