Redirect loop on wp-admin or wp-login.php

前端 未结 16 4148
温柔的废话
温柔的废话 2021-02-09 18:30

I put together a quick WordPress site locally using MAMP, then checked it into an SVN repo. I then checked it out on to my development server.

I didn\'t change anything

16条回答
  •  无人及你
    2021-02-09 18:57

    with nginx config I had originally only this line and experienced the same redirect issue:

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

    after adding this everything was fine:

    location /wp-admin/ {
        index index.php;
        try_files $uri $uri/ /index.php$args;
    }
    

提交回复
热议问题