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

前端 未结 16 4155
温柔的废话
温柔的废话 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:42

    if your webserver is nginx,you may need check the configure file of your nginx. If there is

    if (!-f $request_filename){
        rewrite ^/(.+)$ /index.php?$1& last;
    }
    

    Replace these lines with

    try_files $uri $uri/ /index.php?$args;
    

    See also Nginx Pitfalls , WordPress wiki page on nginx

提交回复
热议问题