Background of the issue:
We want to change wp-admin login URL from default (wp-admin) to custom login URL without plugin. We change wp-admin URL with below solution: First of all, we went to the cpanel and change the name of wp-login.php file to wpadmin-customname.php. After that we changed all wp-login string in this file to the wpadmin-customname. In the last step we went to the wp-includes and edit general-template.php and changed wp-login URl. Every thing works fine and we can login to the dashboard with new URL (wpadmin-customname.php).
Symptoms:
This code works just for default language (Arabic) and if we change language to English, we can not login and get a 404 error.
Questions:
What should we do to change wp-admin URL to custom URL without plugin?
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.