Forbidden You don't have permission to access /wp-login.php on this server

前端 未结 9 2002
天命终不由人
天命终不由人 2020-12-30 03:31

I have one problem with all my WordPress\'s sites. I can access in all and navigate in the posts, pages and other. But when I go to wp-login.php I view the form

9条回答
  •  一向
    一向 (楼主)
    2020-12-30 03:43

    Change .htaccess file code by this code :

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # 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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress
    

提交回复
热议问题