rename url localhost/wp-admin for dashboard in wordpress
I found the solution, this plugin changes the login URL(wp-admin.php) and the administrator URL(wp-admin)
https://es.wordpress.org/plugins/wp-hide-security-enhancer/
Wordpress - Change Admin / Login URL
well. i fixed it.
define('WP_ADMIN_DIR', "admin");
define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . WP_ADMIN_DIR);
this entry has to be in wp-config.php
.
Ive wrote it in my plugin and obviously its not working.
thanks anyway <3
Changing wordpress admin url
Not via .htaccess you can change this via wp-config.php and functions.php of theme
wp-config.php
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
functions.php
update_option( 'siteurl', 'http://example.com' );
update_option( 'home', 'http://example.com' );
Replace the URL you need to change.
Wordpress change base url for wp-admin
Change the url
in your database table called wp_options
field's home url and site url. Change it to your new url.
Related Topics
Mysqli Prepared Statements with in Operator
PHP Check Value Against Multiple Values with Or-Operator
How to Check the Performance of MySQL Indexing
How to Connect to MySQL Database in PHP Using MySQLi Extension
Calculate Skip Value for Given Record for Sorted Paging
Get Size of Post-Request in PHP
Understanding Pdo MySQL Transactions
Array_Key_Exists Is Not Working
How to Pass Data Between Pages in PHP
Split Keywords for Post PHP MySQL
PHP String Function to Get Substring Before the Last Occurrence of a Character
Selecting All Columns That Start with Xxx Using a Wildcard
Using Like in Bindparam for a MySQL Pdo Query
How to Destroy the Session Cookie Correctly with PHP
Retrieve the Id of an Inserted Record: PHP & Ms SQL Server