Change WP-Login or WP-Admin

时间:2011-07-27 作者:Howdy_McGee

我是否可以更改wp登录名或wp管理文件的名称,以便我可以转到其他文件名进行登录。我试图阻止黑客找到我的登录名,而wp登录名已成为一个非常明显的选项。

1 个回复
最合适的回答,由SO网友:PrivateUser 整理而成

据我所知,你不能重命名wp管理员。许多主题和插件在路径中使用wp-admin。因此,如果你重命名它,那么你所有的插件和主题都将被破坏。如果您不希望用户访问wp admin,请使用限制它。hAccess如果有人访问您的wp admin url,请使用将其重定向到其他页面。htaccess文件。仅允许某些IP访问wp admin。

例如,使用此。wp admin根目录中的htaccess代码(不是wordpress根目录)。新建。htaccess文件并使用此代码。

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "Example Access Control"
AuthType Basic
<LIMIT GET>
order deny,allow
deny from all
allow from xx.xx.xx.xx
allow from xx.xx.xxx.xx
</LIMIT>
更换xx。xx。xx。xx和您的IP地址。您可以添加更多。此后,只有您可以访问wp admin。您还可以使用redirection 插件。

如果您必须重命名wp admin,请继续阅读更多内容,但要格外小心。

只需用关键字替换“wp admin”。使用此simple search and replace 工具这是screenshot 那个工具的。

Warning: If you update your wordpress then your site will be broken. You should replace them in themes and plugins too. I highly NOT recommend this option. Use this option only if its mandatory. I\'m not responsible for any problem that arises if you use this option.

结束

相关推荐

Admin area 'toggle' w/ cookie

wordpress管理员已经在菜单和元数据库上使用了某种切换。。w/“点击切换”按钮,可记住打开与关闭状态。有人知道什么代码应该对此负责吗?我想将其实现到我的自定义Metabox的各个部分中,当WP默认具有此功能时,我似乎不需要向管理区域添加脚本(b/c它已经很慢了)。