开发者

nginx - 404 not found page for permalinks [closed]

开发者 https://www.devze.com 2023-01-15 15:47 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 9 years ago.

开发者_JAVA技巧 Improve this question

Me and my friend have had a website (http://www.ferfereh.ir - sorry not english) for a year. We've been using a Linux Apache host with wordpress installed. Now suddenly all of our posts (which had a permalink structure = /%category%/%postname%.html) have broke and says:

404 Not found

nginx

Maybe our host provider has installed NginX. I don't know what Nginx exactly is but I read somewhere that it has some conflicts with the .htaccess configurations which makes our permalinks, is that right.

What should I do?

Many Thanks


try_files $uri $uri/ /index.php?q=$uri&$args; solves the problem nicely. Do not forget to restart nginx!

more info

0

精彩评论

暂无评论...
验证码 换一张
取 消