I've set it so non-admin user can't see the "Dashboard" link or can't have access to the main "wp-admin/index.php" page. I've also added a plugin that restrict non-admin users from creating a new page. Whenever a non-admin users try to add a new page, they'll be accidentally redirected to "wp-admin/index.php?permissions_error=true", which is the main "wp-admin/index.php", or "Dashboard" page.
How do I restrict access to the wp-admin/index.php (main dashboard page), or redirect them to their wp-admin/profile.php page?
screenshot of what I'm trying to achieve:
If someone were smart enough to add "?permissions_error=true" next the the "wp-admin/index.php" in the url address, the would get access to the "wp-admin/index.php" main dashboard page, even if they don't have permission to.
- I've tried adding "Redirect 301 /localhost/ft/wp-admin/index.php?permissions_error=true http://google.com" to the .htaccess file, but it's not working because of the "?permissions_error=true"