Magento on nginx: a surprisingly common issue

Often, Magento sites will be set up to have .html on the end of the category pages and product pages. However, often nginx is configured to treat .html like static content and “toss out” any query strings. This breaks pagination and layered navigation among other things. If you notice that pagination is not working in…
Read more

Nginx URL rewriting fix for WordPress

Are you using nginx with wordpress, and stumped why your category and post pages aren’t working? Here’s a really simple trick I stumbled upon that fixed my problem instantly. if (!-e $request_filename){ rewrite ^(.*)$ /index.php?q=$1 last; break; } Putting this after my “location ~ \.php$” block fixed the problem, and I was able to load…
Read more