try this >>
step 1) on wp-config.php
define('WP_HOME','https://www.my-site.com/my-site.com');
define('WP_SITEURL','https://www.my-site.com');
define('RELOCATE',true);
now, on your /index.php
change this line: require( dirname( FILE ) . ‘/wp-blog-header.php’ );
to
require( dirname( __FILE__ ) . '/my-site.com/wp-blog-header.php' );
Related Posts:
- “Too many redirects” ONLY when trying to access wp-admin page
- Admin Page Redirect
- Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
- Wrong canonical link on wp-admin pages
- stop redirection on /wp-admin call to /wp-login
- wp-admin produces a 302 redirect to itself
- Users are redirected to homepage instead of wp-admin
- Unwanted redirect in admin area
- Login to wp-admin “redirect_to” points to wrong URL after migration
- wp-login.php — redirect logged in users to custom URL
- Can’t access wp-admin Internal Server Error 500
- Can’t access admin dashboard with wp-admin without /index.php after it
- Change Dashboard url
- WordPress subdomain wp-admin redirects to main domain
- Why is there an intermediate redirect to https://public-url.org/wp-admin?
- Prevent /wp-admin/ from redirecting to homepage?
- https://mydomain/wp-admin redirects to wp-login.php?redirect_to=https%3A%2F%2Fmydomain%2Fwp-admin%2F&reauth=1
- Redirect non-admin users away from wp-admin/index.php (main dashboard page) to wp-admin/profile.php
- WordPress (behind HAProxy and Jetty), not multisite, in sub folder – and /en/wp-admin/ keeps redirecting to /wp-admin/
- Created a new subdomain with same content. Should I add a redirect in my old subdomain?
- wp-admin – 404 after custom login form
- How to fix ‘WordPress redirection loop problem in wp-login.php page’?
- wp-admin 302 redirects
- Too many redirects after added SSL redirect on port 80 virtual host
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- Unable to properly login
- Restrict access to admin-post.php
- Redirect an entire WordPress site on a subdomain, except wp-admin
- Admin sometimes redirects to HTTPS
- Too Many Redirects – WP-Admin Only
- WP Admin Login keeps redirecting to login
- CPU overload spam – redirect link to wp-admin and new post
- How to access wp-admin from original website after setting the domain redirect/forwarding
- WordPress /wp-admin redirect to wrong port in docker
- Login redirect_to url is pointing to a url with the port
- Redirect from wp-admin back to page
- Can’t access WP-Admin via HTTPS
- Trying to login to my site redirects me to the first page
- Avoid executing a function (redirect) if I’m in the admin area
- stop customize.php redirect to login page if admin is not logged in
- wp-admin redirects to standard wordpress page
- I cannot go to http://novathon.cloud.reply.eu/wp-admin – always redirected to /wp-login
- Unable to log in as admin
- Random HTTPs redirections at admin area in shared hosting
- How can visitors redirect wp-admin to the homepage?
- 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
- Word press wp-admin redirecting to reauth=1
- Wildcard multisite wp-admin url wrongfully redirected
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- adding custom stylesheet to wp-admin
- Disable dragging of meta boxes?
- Toggle admin metabox based upon chosen page template
- How to remove the core embed blocks in WordPress 5.6?
- How to order by post meta name in wp admin?
- How set defaults on wpLink()
- Remove dashboard, use Pages tab as default
- My wordpress site gets redirected automatically to the old site any known solution for this?
- Use a different domain for SSL
- How to list ALL Pages in the dashboard?
- Is there un-wp_autop function?
- Adding a menu item in the admin bar
- how to force caching of wordpress admin
- Slow admin – waits and is blocked for a long time
- “leftover” notifications left on ever admin screen?
- Excerpt textarea missing on post editing page in admin panel
- Dashboard links not working
- jquery UI in wordpress admin
- Resize Admin Featured Image Thumbnail in CPT Edit Screen
- Displaying which Role the current user is assigned to
- Restrict access in wp-admin area?
- Retrieve Path of admin.php
- Registering jQuery kills admin functions
- Adding HTML/Text to Top of Subscriber’s Profile Backend Page
- submit for review issue
- wp-admin does not redirect to dashboard
- Display $pagenow error notice on all admin pages
- Change the Default Pages Menu View in wp-admin
- Change WP-Login or WP-Admin
- How can I restrict a user to a specific item in the WordPress Admin? [closed]
- WordPress address URL keeps dropping the www
- How to show postmeta in custom columns for the posts screen?
- disable a wp javascript on live website, but not on wp-admin page
- wp_nonce_url to users.php for deleting user not working
- How can I remove the user avatar from admin toolbar?
- Moving wp-admin to a different to a subdomain
- using wp_sprintf at wordpress option page,
- Can’t login to Dashboard when changing site URL to HTTPS
- Limit access to wp_admin
- Not Found (404) error on admin page, CSS gone on blog
- MySQL CPU Usage Surge up When Multiple Post Editor Pages are open
- Remove All in One Pack from the admin bar
- Post Editor not working on WordPress 3.5.1
- How to Change The WordPress Login URL Without Plugin
- Disable wordpress reordering functions in backend screen element
- transition_post_status not working via Quick Edit
- how to customize wp-admin page using child theme
- Enque script based on url paramater
- new subdomain to apply as main domain
- How to disable admin notice in child theme? [closed]
- I can´t access my admin panel. I tried all possible solutions