By MrOptimistic
Anyone can help me? Why is that the 404 will show only on the main domain.
www.example.com/golf/ <— Correct Path www.example.com/golf/asda1231 <— Wrong Path 404 doesn’t show www.example.com/1232131asdada <— Wrong Path 404 show
I’m using Nginx, ubuntu, and Wordpress.
I have custom permalinks. /blog/%postname%/
I hope i explain it correctly.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I think that in order for the permalinks to work, you should have something like this in your Nginx server block:
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
}
What is the exact error that you are getting? Do you get a standard Nginx 404?
I could also suggest checking your Nginx error log:
tail -100 /var/log/nginx/error.log
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.