Problem: Restoring a wordpress site using BackupBuddy on ISPConfig / nginx. The home page looks fine, but other pages becomes Error 404.
Solution: Edit the nginx conf.d/sites-available/yoursite.vhost
Add this at the end of the file, just before the final }.
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
Solution: Edit the nginx conf.d/sites-available/yoursite.vhost
Add this at the end of the file, just before the final }.
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
Another official change is documented at WordPress.org standard.
Source: https://codex.wordpress.org/Nginx
Add this, or create the new location / block
Source: https://codex.wordpress.org/Nginx
Add this, or create the new location / block
location / {
# This is cool because no php is touched for static content.
# include the "?$args" part so non-default permalinks doesn't break when using query string
try_files $uri $uri/ /index.php?$args;
}
Comments
Post a Comment