MattLoyeD / Prestashop-Nginx

Prestashop 1.7 Nginx Configuration
89 stars 55 forks source link

Call site root url (example.site.com) not add index.php (403 error) #12

Closed matteolavaggi closed 5 years ago

matteolavaggi commented 6 years ago

I cant access example.site.com , only example.site.com/index.php. I've solved adding this to your config file:

# Redirect needed to "hide" index.php
    location / {
#ADD THIS 
        index /index.php;
#END
        try_files $uri $uri/ /index.php$uri&$args;

...