Only home page on my wordpress site is working but all the links are 404 Not Found nginx/1.4.6 (Ubuntu) Any suggestion what should I do ?
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!
Yeah it worked like a charm
Edit file /etc/nginx/sites-available/xyz.vhost
and following under index line
index index.html …
try_files $uri $uri/ /index.php?$args;
Hi MARKOVIC.ANDRIJA, It’s seems like you did not configured your server configuration file in /etc/nginx/sites-available folder properly. Check that you have put try_files $uri $uri/ /index.php?q=$uri&$args; instead of try_files $uri $uri/ =404; It will fixed your 404 error hopefully. Thank You M A Kashem CEO Xponent Info System (PVT.) LTD.
Guys… work fine but you have to use: try_files, not tryfiles… like code below
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.php?q=$uri&$args;
#try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
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.