You have to use a redirect not just a rewrite:
^dashboard(.*) wp-admin$1 [L,R=301]
WordPress is using a hard coded search for wp-admin in the request URI.
Related Posts:
- How can I make WordPress work with a Symfony app?
- issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path
- How to create custom URL routes?
- remove “index.php” from permalinks
- How to redirect/rewrite all /wp-login requests
- Change Login URL Without Plugin
- How to change default page slug?
- Mod_rewrite delete parameter in 301 Redirect
- .htaccess rewrite rule for removing .php extension with exception of wp login and wp-admin
- Need to make a php file inside theme accessible via url
- How to change “wp-admin” to something else without search-replacing the core?
- Evaluating a external rewrite rule before internal wordpress rewrite rule
- Custom rewrite rule for backend/admin?
- Prevent /wp-admin/ from redirecting to homepage?
- Rewrite rule to load images from production does nothing
- Rewrite Rules Are Redirecting and Not Passing VARs
- WordPress rewrite rules don’t need ^?
- Custom rewrite not working
- WP is ignoring .htaccess rewritten URL
- ReWriteRules and WordPress Multi-Sites with Sub Directories
- Rewrite wp-login.php URLS to static pages?
- Rewrite custom post type URL parameters
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- URL Rewriting for PHP script on an image URL
- Change pagination url format
- How to remove specific category from URL in WordPress
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- Custom Rewrite rule to captured post (rewrite rule to rewrite rule)
- Taxonomy Pagination Rewrite
- URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”
- Localize URL bases
- How can I create custom URL routes?
- How do I make WordPress revise an .htaccess file a certain way?
- Rewrite rules for custom post type
- How to change an existing wordpress page rewrite rule?
- Weird urls after moving site from local env to a server
- Pretty URL via Rewrite
- Custom Rewrite for Profiles
- help with rewrite_tag and rewrite_rule for custom page GET variables [duplicate]
- Can’t get pretty permalinks to work without index.php
- Is it possible to use the same slug structure for a taxonomy and for some pages?
- prevent wordpress from changing/rewriting url ip with the siteurl settings
- htaccess – Redirect to subfolder without changing browser URL
- Generic htaccess redirect www to non-www
- Organizing Code in your WordPress Theme's functions.php File?
- How to check if a user is in a specific role?
- Can I rename the wp-admin folder?
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- How do you create a “virtual” page in WordPress
- Need help with add_rewrite_rule
- Changing Admin Menu Labels
- Adding custom columns to custom post types
- Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
- adding custom stylesheet to wp-admin
- Can’t change language (only “English (United States)”)
- Is there ANY way to remove comments function and section totally?
- How to use “menu_order” field for posts?
- “Too many redirects” ONLY when trying to access wp-admin page
- Custom pages with plugin
- How to restrict dashboard access to Admins only?
- Admin Page Redirect
- Disable dragging of meta boxes?
- Toggle admin metabox based upon chosen page template
- Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
- Change the “page” slug in pagination
- When moving a WP site, why does wp-admin redirect to old site?
- How to disable the “Post Lock/Edit Lock”?
- adding the category to the admin column for a custom post type?
- How can we make managing lots of pages in WordPress Admin better?
- Understanding add_rewrite_rule
- Change page title in admin area
- do_shortcode() within Admin Page
- How can I control the position in the admin menu of items added by plugins?
- Changing the ‘wp-admin’ URL to whatever I want
- web.config conflict on IIS
- Unit testing in the WordPress backend (is_admin() is true)
- Admin ajax request return 0 with die()
- How to prevent access to wp-admin for certain user roles?
- Masking wp-content/themes/name/images to just images directory using htaccess
- How to remove screen options and help links in the admin area?
- How to remove the core embed blocks in WordPress 5.6?
- How to increase the file size limit for media uploads?
- Create WP tutorial for users with admin pointer using next button for navigation
- I’m getting a 404 message when I try to access wpadmin
- Taxonomy dropdown metabox in the back-end
- wordpress wp-admin css not loading
- Sort admin menu items
- Custom rewrite rules for archive page and single post
- How to order by post meta name in wp admin?
- How set defaults on wpLink()
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Custom post type permalink endpoint
- Remove dashboard, use Pages tab as default
- Rewrite rules not working in WordPress
- Show all post tags on post edit screen/sidebox
- How to hook in and modify the new revisions UI (3.6+)?
- Dynamic Endpoints
- How to display a static HTML page while setting up a WordPress site?
- How to remove dates from existing permalinks?
- Limit widget to certain sidebar?