[英]WP-login.php is Redirecting to the wrong URL
By mistake I have installed a php script in my root directory, where wordpress is available. 我错误地在根目录下安装了一个php脚本,其中有wordpress可用。 After that all my permalinks have been changed. 之后,我所有的固定链接都已更改。 After I modified .htaccess file and permissions file by ftp, now my site site is almost OK. 通过ftp修改.htaccess文件和权限文件后,现在我的站点站点几乎可以了。
Still, I can't log-in admin panel. 不过,我仍然无法登录管理面板。 When I supply admin user name and password, the url I am redirected to is http://investorsbd.com/index.php/wp-login.php (extra index.php has shown) and says nothing found for index php login. 当我提供管理员用户名和密码时,重定向到的URL是http://investorsbd.com/index.php/wp-login.php (显示了额外的index.php),并且没有找到索引php登录的内容。
How can I remove that extra index.php for log-in my wordpress admin control panel? 如何删除该多余的index.php以便登录我的wordpress管理控制面板?
This is a temporary fix, but if you click the forgot password link and then enter your email and then login it will work. 这是一个临时解决方法,但是如果您单击“忘记密码”链接,然后输入您的电子邮件,然后登录,它将起作用。
More permanently, we found it easier to link directly to wp-login rather than wp-admin. 更永久地说,我们发现直接链接到wp-login而不是wp-admin更容易。
Modify your .htacess file with below code 使用以下代码修改.htacess文件
#RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
else try this code 否则尝试此代码
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /dwellingventures/dwelling/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . http://investorsbd.com/index.php [L]
</IfModule>
# END WordPress
Hope it helps you 希望对您有帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.