Coming from WP I thought EE is better suited for a new website. Installed EE6 Beta3 and everything worked as it should except that, I got the 404 error on every page except the root page and the admin area. I’m on Nginx.
Tried to solve the problem with my limited knowledge before posting on the forum but I couldn’t. It even dawned on me to reinstall from scratch, replacing Nginx with Apache but I have a lot of other things depending on Nginx.
Thank you for any help.
I think I’m not configuring it correctly? Found an article about that, but it was targeting EE 3.
The part related to location on my Nginx config is this
location / {
try_files $uri $uri/ /index.php?$args; location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
fastcgi_hide_header "Set-Cookie";
}
# deny running scripts inside writable directories
location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
return 403;
error_page 403 /403_error.html;
}
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass unix:/run/php/php7.3-fpm-mysite.com.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
Managed to fix it.
An option to mark topics as solved in the forum component would be awesome. Also a way to reply/quote. Not only on forum but blog comments too.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.