A lot of people asked me how to change the default login address for WordPress, because if we knew it was backstage WORDPRESS, we all knew it.http://域名目录/wp-login.php就是登录地址,再字典暴力破解,很有可能会被破解开密码。(事实上前段时间确实有过类似报道,很多WP站被暴力破解帐号密码,造成严重损失)。而网上大多数教程都是在wp-login.php后面加上参数,例如?x7aio2等等类似的形式,虽然起到一定作用,但很多人还是觉得不好看,而且输入起来麻烦,不如自己自定义来的美观
Next, let’s change the wp-login.php suffix of WordPress landing file name.
We need to modify two files, including, of course, wp-login.php.
1. Replace the wp-login.php file with your desired name under the root directory, e.g., houtai.php, and open it with an editor. Replace all wp-login characters with hootai. 2. Find a gennal-template.php file in the wp-includs directory, open it with an editor and replace all wp-login characters with houtai. Search for the variable $[login_url] and change this variable to this
$login_url = site_url('buzhunluanjin.php', 'login');
where buzhunluanjin can be replaced with another, or save default wp-login. This line means definition when someone passeshttp://域名/wp-admin/地址访问网站时或者直接访问后台某个地址时进行跳转到site_url()设置的地址内,所以防止别人探索你的地址。
The post is from the source view blog, and please contact the station director to remove any violations.
![]()
未经允许不得转载:萌萌Apprentissage » Method to change the default login page name for Wordpress wp-login
WordPress Summary of Moving Methods: Migration of Hosts and Replacement of Domain Names
How to set auto-optimize auto-autoptimize plugins for your WordPress site
Fix the Alt properties of Wordpress Google SEO search engine to optimize missing images
WordPress Configure Memcached Cache Course (no code required)
Use the tower panel to accelerate the optimization of the course on Wordpress 4 paces
Wordpress used redis or memcached to make site caches optimized.
Wordpress website moveovers to change domain name solutions
WordPress User Registration Increase Authentication Bans Machine Registration