• Resolved Taffey Lewis

    (@taffey-lewis)


    I’ve installed nginx, FastCGI and PHP on my server. WordPress 3.0 installed after a bit of a monster battle, but it’s installed and working well.

    However, when I change the permalink settings to anything other than default, I get 404 errors on every post, article and page.

    I understand that this is something to do with nginx not supporting .htaccess and WordPress getting confused with where to go when a page is requsted.

    I’ve tried a few rewrites in the nginx conf files and even the nginx compatibility plugin – neither have worked. I managed to stop the 404 errors, but instead of WordPress finding the post I was after I merely got my PHP confirmation page. ??

    Does anyone have any advice or solutions? I know this is probably the umpteenth post like this, but most taper off into confusion…let’s have some clarity! ??

Viewing 1 replies (of 1 total)
  • Thread Starter Taffey Lewis

    (@taffey-lewis)

    After much pain:

    paramater
             if (!-e $request_filename) {
                    rewrite ^/wordpress/(.+)$ /wordpress/index.php?q=$1 last;
             }

    If the requested file does not exist, rewrite it and pass to index.php with a query.

Viewing 1 replies (of 1 total)
  • The topic ‘nginx and WordPress – the 404, permalink issue’ is closed to new replies.