Wordpress not showing up, 404 error
2 Replies
# Example taken from a digital ocean guide and modified to include the domain.
server {
listen 80 example.com www.example.com;
listen [::]:80 example.com www.example.com;
root /var/www/html/example.com/;
index index.php index.html index.htm index.nginx-debian.html;
server_name example.com;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
You can use WordPress with Linode on Cloudways platform, I was having same issue and found this blog to fix WordPress 40 error: https://www.cloudways.com/blog/fix-404-error-on-wordpress/