nginx - 404 not found page for permalinks [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
开发者_JAVA技巧 Improve this questionMe 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
精彩评论