We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permalinks do not work with this config. How do I set the nginx re-write rules?
The text was updated successfully, but these errors were encountered:
I faced the same issue and eventually I was able to solve it following these 2 steps.
New NGINX Location rule
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.
Elementor Fix
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!
Sorry, something went wrong.
No branches or pull requests
Permalinks do not work with this config. How do I set the nginx re-write rules?
The text was updated successfully, but these errors were encountered: