If you have access to the database, go into the wp-options table and change the two instances of www.olddomain.com
to www.newdomain.co
m .
You should be able to log into the admin area then.
Then use a Search and Replace plugin (I like “Better Search and Replace”) to change all instances of www.olddomain.com
to www.newdomain.co
m ) . That is required to ensure that internal links (especially to media files) will work.
Of course, a backup of your database is always a good idea.
Related Posts:
- My wordpress site gets redirected automatically to the old site any known solution for this?
- Why am I unable to login after converting to www?
- new subdomain to apply as main domain
- unsuccessful attempt to change domains- wordpress re-routing to old domain
- Use of domain name
- Registering for a domain on WordPress
- Run two wordpress on the same domain
- How to access wp-admin from original website after setting the domain redirect/forwarding
- Reestablishing Automatic and Secure FTP Connection, Primary Domain Change
- Site admin can login but cannot access wp-admin after domain migration?
- Can I rename the wp-admin folder?
- How to restrict dashboard access to Admins only?
- How to remove screen options and help links in the admin area?
- I’m getting a 404 message when I try to access wpadmin
- wordpress wp-admin css not loading
- How do I find all admin users using phpmyadmin?
- wp-admin produces a 302 redirect to itself
- create users to site with specific language
- Restrict access to admin but allow admin_post hook
- How to set custom editor style when editing the homepage?
- How to disable or hide “collapse menu”
- Login to wp-admin “redirect_to” points to wrong URL after migration
- TinyMCE Autoresize
- WordPress wp-admin suddenly lost its style
- Create Read Only Admin
- wp-admin is redirecting to back to home page (localhost)
- After changing Site url to https, can’t access login page
- Add custom content in user-edit.php page
- How to use Yoast SEO backend in english even if WPLANG variable is not english?
- Rename W3 Total Cache admin menu
- How can I add my script to admin using script-loader.php?
- Admin first hook that outputs HTML?
- To remove default dashboard items and add quick draft widget for custom post type
- I get “The PHP Date/Time library is not supported by your web host.” on my CentOS host, what library to I need to install to add support?
- How can I allow core, plugin, theme update checks only for selected admins?
- why my menu is not appearing on the admin panel
- Can’t access WordPress as an admin – but I can log in as a user!
- Locked Out Of WordPress Admin Dashboard After Server Move
- CNAME site attempts to load files over HTTP instead of HTTPS
- Subscribers become Authors after Upgrade? / Mass Update of Users?
- How to create a WP Admin user in phpMyAdmin for WordPress 4.6
- How do I host WordPress on a hidden domain through a reverse proxy?
- Redirect loop in /wp-admin/
- Add javascript confirmation popup on “Move to Trash” link
- Users disappeared from wp-admin
- Modify WP-Admin login fields
- Create custom fields as image uploads [duplicate]
- 404 error comes up when I go to wp-admin after first installation [closed]
- Is there a quick way to find out what posts haven’t been tagged?
- WordPress (behind HAProxy and Jetty), not multisite, in sub folder – and /en/wp-admin/ keeps redirecting to /wp-admin/
- WordPress isn’t reflecting changes I make to a specific file via FTP [closed]
- What are the requirements to make the admin toolbar show up on the front end
- Sorry, you are not allowed to access this page
- Cannot Access wp-admin as redirects to wp-signup.php?
- Screen Options & Help Buttons not working when including Bootstrap Css
- edit.php alter links
- Cannot access WordPress login pages
- How to get Role Subscribe Users on Admin Menu only in Pages in WordPress
- Custom Admin Pagination links
- Have different site location for wp-admin in IIS
- Lost administrator privileges and can’t find a fix
- Why does do_robots() Allow: /wp-admin/admin-ajax.php by default?
- What is the meaning or function of this notice?
- How to set where user is redirected to after logging in at wp-login?
- Restrict submitters from wp-admin [duplicate]
- How change a core block label
- Cannot redeclare wp_update_core()
- WP-admin or any other is redirecting me to (This page doesn’t seem to exist.)
- Adding a button to send email to a user in WordPress Admin Users table
- Restrict access to admin-post.php
- How do I add something to the “Edit Tag” page in wp-admin?
- How to create dependent dropdown custom field in wordpress admin post form
- How do I make it so that the all users page is not a white screen?
- Show shipping class on product admin page
- Change the default Post/Page edit title in Admin
- Detail view for an element in a list the admin site
- How to check if a user is in a specific role?
- Accessing wordpress tool in local MAMP Site
- How to load Dashboard default media files via HTTPS even when Browser URL has HTTP
- Regular users logs in as ADMIN if Admin logged in recently
- Enable Excerpt field inside the post editor for pages
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- Strange Popup Ad on my WordPress Admin Dashboard
- WordPress switch domains
- Not able to access WP admin Page, redirected and a drop down login menu appears 401 error
- OSX El Capitan local install Maximum upload file size: 2 MB But php.ini set to 64M
- Get Post ID in Admin Edit screen otherwise generate it?
- Cannot login in WordPress even after changing hash password in phpmyadmin
- Is it possible to outsource wp-admin to another server?
- Wp mwnu not works at all
- Can’t log into WordPress after domain change
- Trying to use and understand JSON API and get_posts
- Search box for hierarchical taxonomies in admin interface
- Custom Admin Message from external source to multiple users
- How can visitors redirect wp-admin to the homepage?
- Creating your own options-general.php page
- I want to know if it’s good for SEO [closed]
- My website’s wp-admin redirects to another website’s wp-admin after pointing the site url to a subdirectiory
- My website does not load since two days!
- how to Hide all products except the General Manager role in the WordPress admin panel?