Skip to content
Base64
  • Hire me
March 25, 2022July 29, 2022

Change WordPress wp-login.php url without plugin

General by Curt Sahd

There are so many confusing guides online to achieve something quite simple: change the login url from wp-login.php to something different so as to prevent automated attempts to brute force your login details.

Duplicate the wp-login.php file and name it your-custom-login.php
Find and replace all references of wp-login.php with your-custom-login.php in your-custom-login.php file
Remove wp-login.php from your public_html directory

You will now be able to login at https://yoursite.com/your-custom-login.php. This however, does not prevent someone from visiting https://yoursite.com/wp-admin which will redirect to https://yoursite.com/your-custom-login.php. To redirect /wp-admin to your homepage, follow this guide.

Tagged change, plugin, url, without, wordpress, wp-login.php

Post navigation

How to enable/disable CageFS for user in CloudLinux
WordPress – redirect wp-admin to your homepage without plugin

Recent Posts

  • Ansible – check if file contains text
  • Train SpamAssassin SPAM with .eml file
  • How to setup Nginx reverse proxy in Docker on Ubuntu 22.04
  • Screen sharing not working Discord Ubuntu 22.04 – Disable Wayland
  • Specify Ansible Python interpreter on Task/Host

Categories

  • General