Nginx & Wordpress Multisite error. please help.

Hi,

I do not know why not.

I can not even try.

Server Specifications

  • Centos 7

  • Nginx: 1.10.2

  • PHP7: 7.1

  • Mariadb: 10.1

I get a WordPress multi-site error in Nginx.

  • Modified wp-config to succeed multi-site installation

ㅇ What can not be done

  • .htaccesss is used by Apache server, so change it to Nginx syntax.

  • Error message: too many redirections …

  • How do I apply the contents of .htaccess to Nginx's default.conf?

  • Google does not work well even if you put a floating phrase.

My Syntax -----------------------------------------------------------------------

testsite : my site.

nginx path : /etc/nginx/conf.d/default.conf

wordpress path : /usr/share/testsite


If (! -e $ request_filename) {

Rewrite / wp-admin $ / testsite $ uri permanent;

Rewrite ^ / [_ 0-9a-zA-Z-] + (/ wp -. *) / testsite $ uri permanent;

Rewrite ^ / [_ 0-9a-zA-Z-] + (/.* . Php) $ / testsite $ uri permanent;

}

–---------------------------------------------------------------------------------

1 Reply

Hi,

try with following code

if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
}

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct