Using WordPress with Apache behind an nginx reverse proxy

You’re missing your WordPress rewrite rules.

It’s probably confusing because, in Apache, WordPresss automatically generates the rewrite rules in .htaccess. It does not do the same in nginx environments.

Pay special attention to the WordPress documentation on nginx and configuration directives referencing HTTP rewrite rules, the “includes” directives for segmenting configuration and the specific WordPress rewrite rules that need to be present for pretty permalinks to work properly.

Without knowing a lot about your operating system, site/network or setup, I hesitate to copy and paste code without context. This section of the documentation is pretty thorough, and should provide what you’re looking for.

Leave a Comment