Nginx conf for Wordpress pretty url's

Please use this template for troubleshooting questions.

How I encountered the problem: My issue: local WordPress-Site with local nginx-Server only works if WordPress Permalinks are set on “easy”, but not with my favorite “post name” = pretty url’s.

Solutions I’ve tried: insertet in file etc\nginx\sites-enabled\auto.aschi.test.conf «location / { try_files $uri $uri/ /index.php?$args;»

Version of NGINX or NGINX adjacent software (e.g. NGINX Gateway Fabric): 1.30.0

Deployment environment: Windows 11, Laragon V 8.6.1, PHP 8.5.5, local WP-Site “aschi.test”

error.log (1.7 KB)

Minimal NGINX config to reproduce your issue (preferably running on https://tech-playground.com/playgrounds/nginx for ease of debugging, and if not as a code block): (Tip → Run nginx -T to print your entire NGINX config to your terminal.)

NGINX access/error log: (Tip → You can usually find the logs in the /var/log/nginx directory.)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.