0

I would like change the default login URL for WordPress, i.e. www.website.com/wp-admin to something else that is custom and will be hard for visitors to try and hack their way in.

0

You can change the backend URL to custom with your own needs. You can acheive this using the plugin iThemes Security.
iThemes Security (formerly Better WP Security) gives you over 30+ ways to secure and protect your WordPress site.

0

Hello use following code without plugin:

Add Below code in wp-config.php

define('WP_ADMIN_DIR', 'private-area');  
define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . WP_ADMIN_DIR);  

Add Below Code in theme functions.php

add_filter('site_url',  'change_wpadmin_url', 10, 3);  
function change_wpadmin_url( $url, $path, $orig_scheme ) {  
    $old  = array( "/(wp-admin)/");  
    $admin_dir = WP_ADMIN_DIR;  
    $new  = array($admin_dir);  
    return preg_replace( $old, $new, $url, 1);  
}

Add below line to .htaccess file

RewriteRule ^private-area/(.*) wp-admin/$1?%{QUERY_STRING} [L]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.