diff --git a/Procfile b/Procfile index 568d1a24..830e01eb 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: vendor/bin/heroku-php-nginx public/ \ No newline at end of file +web: vendor/bin/heroku-php-nginx -C nginx.conf public \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index 2132b3d9..a944f411 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,11 +1,8 @@ location / { + index index.php; try_files $uri $uri/ /index.php?$query_string; } -if (!-d $request_filename) { - rewrite ^/(.+)/$ /$1 permanent; -} - location ~ /\.ht { deny all; -} \ No newline at end of file +}