Welcome! Log In Create A New Profile

Advanced

nginx + Wordpress = problems with permalinks

September 09, 2020 07:25AM
Hi guys!
I try to use nginx for Wordpress and have a problems when setup Permalinks to all other format when "Plain"
I use nginx 1.14.2
PHP 7.3
This is my config /etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server;

root /var/www/html;

index index.html index.htm index.nginx-debian.html index.php;

server_name ip_address_of_my_server;

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

location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
}
}

E.g. I see 404 error for this URL http://sitename.com/category/books-about-water/
For plain settings I see a page - http://sitename.com?cat=16
Subject Author Posted

nginx + Wordpress = problems with permalinks

Pekkonen September 09, 2020 07:25AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready