How to change wordpress default login.php url using nginx rewrite rules? -


i trying change wordpress default logon url http://abc/wp-login.php http://abc/backend using rewrite rule nginx not working me. please check below code.

location /backend {   rewrite ^/backend/?$ /wp-login.php break; } 

and wordpress function is:

add_action('init', 'init_login_rules' );  function init_login_rules() {      $newurl='backend';     add_rewrite_rule( $newurl.'/?$', 'wp-login.php', 'top' );  } 

please me.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -