I suspect, this issue is much more related to htaccess rather than WordPress installation. In a standard WP installation, you can find the .htaccess
file in the root directory of your WP install. This file is used for various server settings and specifically, URL rewrites. The reason for this file starts with a dot, the file is hidden, so may you need to enable the view hidden files.
Your main site might have a specific configuration that needs to be removed in the local environment. So, try testing your site both with and without the access control. And then test it again with the WordPress default htacess config.
Related Posts:
- Check if user is admin by user ID
- Only allow administrators and editors to access wp-admin
- Only allow administrators and editors to access wp-admin
- Allow administrators to pick post author on custom post type edit screen
- Restrict Author role to only 3 wp-admin pages
- Is WordPress secure enough for a multi-user article directory?
- Newly created user role not displaying on users screen
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- Extend user search in the users.php page to allow for searching by role and excluding specified email domains from the “users search” input box
- Organizing Code in your WordPress Theme's functions.php File?
- How to check if a user is in a specific role?
- Admin Page Redirect
- Disable dragging of meta boxes?
- How to prevent access to wp-admin for certain user roles?
- How to remove screen options and help links in the admin area?
- Sort admin menu items
- wp_update_user not updating
- Can an admin check passwords of registered users?
- Custom column for changing post status via ajax
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- create users to site with specific language
- Prevent from deleting any user role but subscriber
- What is the capability that permits access to WP-Admin?
- Admin account only shows Profile and Dashboard with no activity
- how to add custom user capabilities using add_user_meta or something else?
- How to remove “Super Admin” from All Users for those that are not a “Super Admin”?
- Moving wordpress from localhost to server throws admin panel access error?
- Blocking Administrative Access to Authors and Subcribers?
- Displaying which Role the current user is assigned to
- How to hide a specific user role option in a user role list?
- Adding HTML/Text to Top of Subscriber’s Profile Backend Page
- Restrict dashboard access for specific user roles to specific actions
- Change WP-Login or WP-Admin
- How to inhibit dashboard and profile management access to normal users?
- Custom roles showing HTML entities in title form field
- Users Unable to Access Dashboard/Posts/Pages
- What is the practical difference between is_admin() and is_blog_admin()?
- How do I set the homepage to the WordPress Admin Dashboard login?
- Distinguish profile user and admin user IDs / get ID of user being edited
- How to hide wordpress default description box?
- Can’t access WordPress as an admin – but I can log in as a user!
- Redirect non-admin users away from wp-admin/index.php (main dashboard page) to wp-admin/profile.php
- admin_post action not usable if admin access denied to user
- Add column to pages table
- Displaying different in-page content to cliente/admin
- transition_post_status not working via Quick Edit
- Why is unfiltered_upload not working despite being enabled?
- How to create user specific pages (not user role!)?
- Logout USER form backoffice after 30 minutes of inactivity [closed]
- What are the requirements to make the admin toolbar show up on the front end
- I can´t access my admin panel. I tried all possible solutions
- Lost administrator privileges and can’t find a fix
- Downgrade admin account by mistake
- How to set where user is redirected to after logging in at wp-login?
- How to replace “Password Protected” text with icon in Admin
- Deploying WordPress for clients – what do they have access to?
- Hooks: admin_footer and admin_print_footer_scripts not working?
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- What is the correct way to get only display plugin for Administrator Only
- Browse Happy in 3.2
- How to break line / add to ADMIN menu
- Allow admins to login as other users
- User Capabilities are not available in WP REST permission callback?
- Can I Create a Second Admin Level User Role?
- Outputting something based on the presence of post variable in admin screens
- Creating custom admin panel pages without making a plugin?
- Dashboard : remove Safari navigator message
- Available resources for learning WordPress 4.7.2 from the ground up?
- Show global Message in User Profiles with admin only Input field in WordPress Backend
- Change users.php WP_User_Query
- How to make sure your admin doesn’t hi-jack you site?
- Create new user from phpMyAdmin
- Uncaught SyntaxError: Unexpected Token Illegal
- WordPress Admin extremely slow when other admin logged in
- How to check if a user is in a specific role?
- Not able to access WP Admin, it says “Sorry, you are not allowed to access this page.”
- WordPress Admin Panel Left Sidebar No showing on Post create page
- How to change the URL of sub menu page?
- Accessing wordpress tool in local MAMP Site
- Hook into form handle from admin users table
- Give wp-admin access for shop managers
- How to remove Google fonts from wp-admin (Roboto) added by core
- restrict admin panel sections to users
- Trying to login to my site redirects me to the first page
- Redirect non-admin after login, and in url – /admin
- adding existing menu page on new customer user role
- Admin Login Checks
- When installing wordpress through WP CLI mysite.com/admin not working
- Trying to list user and post information from (wp_includes/post.php ) causes Fatal error
- Checkbox not showing as checked on UserProfile (even with checked=”checked”)
- Capability to read/edit page in wp-admin only for administrators
- Admin Login page not working at all
- WordPress blog fails to open
- Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the “users search” input box
- Why when I click on a link into the WP admin panel I am redirected to a link that doesn’t contains wp-admin prefix, so I obtain 404 error
- Override WordPress Core File?
- How to make the Panel // WP-Admin lighter via Mobile
- After Upgrade: $user becomes unknown (id: 0) after successful login?
- how to Hide all products except the General Manager role in the WordPress admin panel?