Nginx & Wordpress Multisite error. please help.
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
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;
}