Custom permalinks not work on Nginx + Apache

It isn’t working because Nginx tries to serve the permalink as a static file. At the moment the current configuration doesn’t allow HTML files to be passed to Apache. Please remove the “html” part from the following block so that the permalinks are passed to Apache… location ~* .(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|htm|html|js|css)$ { root /home/justflic/public_html; } Once you … Read more

Nginx redirect one path to another

Direct quote from Pitfalls and Common Mistakes: Taxing Rewrites: By using the return directive we can completely avoid evaluation of regular expression. Please use return instead of rewrite for permanent redirects. Here’s my approach to this use-case… location = /content/unique-page-name { return 301 /new-name/unique-page-name; }