Open GuerrillaCoder opened 3 years ago
I faced the same issue and eventually I was able to solve it following these 2 steps.
location / {
try_files $uri $uri/ /index.php?$args;
}
Configure NGINX with .ebextensions
Place that script in a new file located in .platform/nginx/conf.d/elasticbeanstalk, I named mine permalink.conf
.platform
nginx
conf.d
elasticbeanstalk
permalink.conf
After using the new location rule I was still facing issues with Elementor.
Replacing permalink.conf with the following code fixed it.
location /{
try_files $uri $uri/ /index.php$is_args$args;
}
Final permalink.conf code :
#pemalink fix
# Enable WordPress Permalinks Support (default .htaccess replacement)
# .platform/nginx/conf.d/elasticbeanstalk/permalink.conf
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
Hope these work!
Permalinks do not work with this config. How do I set the nginx re-write rules?