• Resolved asket1

    (@asket1)


    Hi!
    I have just installed wp latest on ubuntu16 + nginx + php7.0-fpm and all works, but front page, so when i enter example.com – index.php just download, but when i enter example.com/home for example – all works. At the same time if i choose front page as page “home”, i download example.com/home, not open. So i think, that rewrite rule is not correct, but i can`t find solution at google. PLEASE, help!))

    section at site.conf
    ` location ~ \.php$ {
    include fastcgi_params;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_index index.php;
    fastcgi_pass php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param HTTPS on;
    }`

    • This topic was modified 7 years, 9 months ago by asket1.
    • This topic was modified 7 years, 9 months ago by asket1.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Please post as much (nginx) config as possible in order to troubleshoot the issue.

    The above configurations seem okay to me!

    Thread Starter asket1

    (@asket1)

    Pothi, thnx for reply. I rewrote configs from scratch yesterday and problem resolved. So for now it`s all ok.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘nginx – can`t load front page only’ is closed to new replies.