wordpress sub-category ( lowercase letters + non-latin characters ) = 404

⚠️ Temporary workaround https://stackoverflow.com/a/59109698/15497563 sudo apt-get install nginx-extras nginx.conf https://stackoverflow.com/a/11170826/15497563 http { # Include the perl module perl_modules perl/lib; # Define this function perl_set $uri_uppercase ‘sub { my $r = shift; my $uri = $r->uri; $uri = uc($uri); return $uri; }’; } site-enabled https://stackoverflow.com/a/35369570/15497563 server { location ~ ^/(부모/자식a|부모/자식b|부모/자식c)(.*) { rewrite ^(.*)$ $scheme://$host$uri_uppercase; } } … Read more

Only plain permalinks working

My use: # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] # BEGIN WordPress # As diretrizes (linhas) entre “BEGIN WordPress” e “END WordPress” são # geradas dinamicamente e só … Read more