WordPress 3.0 & nginx - permalink, 404 problem

前端 未结 8 2043
清歌不尽
清歌不尽 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:51

    This was how I solved my permalinks in my wordpress blogs in dreamhost.

    Inside the folder /home/ftpusername/nginx/example.com/ (if you don't have it, create it)
    created the file nginx.conf with the following content

    location / {
        index index.php index.html index.htm;
        try_files $uri $uri/ /index.php?$args;
    }
    

    restarted the nginx
    /etc/init.d/nginx reload

    Some notes:
    ftpusername and example.com MUST be changed according to your system.

    That was it!
    Good luck for u all.

提交回复
热议问题