据我所知,你不能重命名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.