Question

Lemp Permalink not wrking on wordpress

Hello guys, I deployed a Lempfrom Marketplace and upload my wordpress

For wordpress I have that line on my nginx

location /faq/ { try_files $uri $uri/ /index.php?$args; index index.php; }

But the permlink is not working, do you guys have any idea what could it be?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @sandro2567,

Hmm, that’s really weird!

Having said that, It shouldn’t be related to your PHP extensions.

Okay so, I saw a couple of things to change in your Nginx configuration file. First, you don’t server anything in your location / block. Can you try and configure it like so :

        location / {
                try_files $uri $uri/ =404;
        }


        location /faq {
                index index.php index.html index.htm;
                try_files $uri $uri/ /faq/index.php?q=$uri&$args;
        }

Notice I’ve updated the location /faq server block a bit. It should help out and work as expected.

Hi @sandro2567,

Can you post your whole Nginx configuration file? The bit you have provided looks alright but there might be something else that’s missing from the whole config.

Otherwise, what’s the error you see when you try to load the /faq/ page?

Regards, KFSys