Change Wordpress Admin Url

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



Leave a reply



Submit