There’s a thread about this on the WordPress forums:
The original article has three steps:
(1) Add constant to wp-config.php
define('WP_ADMIN_DIR', 'secret-folder');
define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . WP_ADMIN_DIR);
(2) Add this filter to functions.php
add_filter('site_url', 'wpadmin_filter', 10, 3);
function wpadmin_filter( $url, $path, $orig_scheme ) {
$old = array( "/(wp-admin)/");
$admin_dir = WP_ADMIN_DIR;
$new = array($admin_dir);
return preg_replace( $old, $new, $url, 1);
}
(3) Add this line to .htaccess on your server
RewriteRule ^secret-folder/(.*) wp-admin/$1?%{QUERY_STRING} [L]
With these steps taken, your admin URL will be: http://www.yourdomain.com/secret-folder/
Related Posts:
- “Too many redirects” ONLY when trying to access wp-admin page
- Use a different domain for SSL
- .htaccess in wp-admin produces a redirect loop
- Change Login URL Without Plugin
- Securing wp-admin folder – Purpose? Importance?
- Wrong canonical link on wp-admin pages
- WordPress in sub directory wp-admin problem
- Options for restricting access to wp-admin
- .htaccess rewrite rule for removing .php extension with exception of wp login and wp-admin
- Can’t access admin dashboard with wp-admin without /index.php after it
- How to change “wp-admin” to something else without search-replacing the core?
- Why should I password protect WP-Admin?
- Call to undefined function insert_with_markers
- Block access to wp-admin
- Cannot log into WordPress Dashboard after removing/adding .htaccess
- Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
- Which HTTP headers to use for subdomain embedding?
- CDN + WP Admin Query – .htaccess redirection
- From 403 error to 500 internal server error
- Cannot Access Admin Area After Migration
- Wrong wp-admin URL
- How do I host WordPress on a hidden domain through a reverse proxy?
- How to Change The WordPress Login URL Without Plugin
- 404 redirect wp-login and wp-admin after changing login url [closed]
- How login is possible, if I deny login page via .htaccess with allow ip
- Redirect an entire WordPress site on a subdomain, except wp-admin
- Blank page when viewing wp-admin
- wp-admin going directly to 404
- WordPress /wp-admin redirect to wrong port in docker
- wp-admin and wp-login.php not Accessible after Cloudflare
- Disabling WP-Admin Caching in htaccess
- Limit access to wp-admin but still be able to log in from different locations?
- SSL doesn’t deliver parts of WordPress Administration Module
- Couple questions about .htaccess, login page, updates
- sortable custom column in media library
- how do I force a single column layout in screen layout
- Sortable admin columns, when data isn’t coming from post_meta
- wp_list_table search box does not show
- stop redirection on /wp-admin call to /wp-login
- How to Display Post Excerpts in Admin by Default?
- Wp3.5 Media Gallery Edit modal: change captions to title
- What is the capability that permits access to WP-Admin?
- Is it possible to set a option, and then redirect to another page directly from a admin notice link?
- Adding body class to login page?
- Getting “Cannot modify header information – headers already sent” error, but only on backend
- WordPress admin menu gap when debug mode is enabled?
- Cookie value cannot be read until I’ve logged into the WP admin
- What corrections does this code need?
- WordPress mutisite migration
- Admin Blank Page with Working Front-End After Updating to WordPress 4.6
- Distinguish profile user and admin user IDs / get ID of user being edited
- Moved wordpress from localhost to live and wp-admin shows white screen
- Auto create post title in admin
- Redirect non-admin users away from wp-admin/index.php (main dashboard page) to wp-admin/profile.php
- How to add wordpress blog to Windows 2008 R2 site
- WordPress disable ‘Install Themes’ tab
- WordPress Admin Not Loading All Core Scripts
- Admin table list API?
- wp-admin – 404 after custom login form
- How to change user admin_color with WP CLI?
- How to apply a CSS file to my admin pages?
- How to create admin tabs [closed]
- Having troubles connecting to WordPress login page using Mamp
- Remove or move admin submenus under a new menu
- Can content be recovered in this situation?
- Efficient way to check local WordPress php files and Database for malicious code? [duplicate]
- Why am I locked out of the system?
- Is it possible to create two different wp-admins for a wp website
- Disable the “remember me” to wp-admin
- Why is WordPress enqueuing admin relevant scripts (e.g., React, ReactDOM, Redux, hooks, TinyMCE etc) when not logged in?
- wp-login not found – All usual solutions not working
- Is there a filter to edit html of user-edit.php
- What do I need for testing a single script in admin
- wp_get_update_data() function running on every admin request
- WordPress multiple admin notices on post update/add
- Sub menu is not working properly
- How to remove some author fields from the edit comment page in wp-admin?
- When i try to open Localhost/wordpress/wp-admin . An Error appears ” Registration Has been Disabled” . No login page is shown in the browser
- Not able to access WP Admin, it says “Sorry, you are not allowed to access this page.”
- How do I edit an add in wp_list_table and return to same page
- admin_post_nopriv_{$action} is secure?
- How to log into WordPress via GET/POST
- Locked out of WordPress after changing to HTTPS – Google Cloud VM
- How to make Media Library use HTTPS?
- How to remove Google fonts from wp-admin (Roboto) added by core
- Trying to login to my site redirects me to the first page
- wp.media – drag&drop overlay stuck
- How to display status messages in admin panel
- Why might this disable other functionality?
- Getting 404s in wp-admin after logged in
- WordPress Admin panel issue
- Modify admin panel tab position
- No HTML/Visual mode option in admin panel (New Post)
- Removing Author name
- No wp-admin, wp-config, or .htaccess folder/file
- Taking over a WordPress site
- wordpress admin is broken [closed]
- LinkControl not showing suggestions when used on admin page
- My website does not load since two days!
- After Upgrade: $user becomes unknown (id: 0) after successful login?