WordPress 3.0 & nginx - permalink, 404 problem

前端 未结 8 2087
清歌不尽
清歌不尽 2021-02-08 16:26

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 chang

8条回答
  •  一个人的身影
    2021-02-08 16:50

    After much pain:

    # if filename doesn't exist, take the request and pass to wordpress as a paramater
             if (!-e $request_filename) {
                    rewrite ^/wordpress/(.+)$ /wordpress/index.php?q=$1 last;
             }
    

    If the requested file does not exist, pass it to index.php. It's a bit slow and I think I might try and not use a query, but it does work... :)

提交回复
热议问题