Okay, the issue was my last regular expression that changed the http:
to https:
did not save. I reran the expression again and refreshed the page and it worked.
Here’s the gist of how to do this (with wp cli) for anyone who comes across this.
In the original site directory:
wp db export
This should create a .sql
file with the original database name and a hash, like db_name-324ddsx9.sql
. FTP that file to your new server/install directory. Then edit it with vi and perform the search and replace. You want to replace all instances of the original domain with the new one.
sudo vi db_name-324ddsx9.sql
:%s/oldsite_name.com/newsite_name.com/g
:%s/http\:\/\/newsite/https\:\/\/newsite/g
:wq
If you haven’t already, create the mysql database. Then from the command line – import the sql.
mysql -u root -p database_name < db_name-324ddsx9.sql
And that should have you set to go.
Related Posts:
- sortable custom column in media library
- How to get the post editor and media library to respect HTTPS administration mode?
- Can initial focus be set to search field in WordPress Media Library?
- Looking for a hook to add attachment information to the media library tab
- Image editing: “Edit Original” and “Replace” buttons missing on old posts
- Cloned a site but can’t log in – redirecting to old site
- Cannot Access Admin Area After Migration
- How To Reset Ownership And Permissions of Wp-Content Folder, In Order to Fix HTTP Error When Uploading Images to WordPress Media Library
- Locked Out Of WordPress Admin Dashboard After Server Move
- Can’t log into wp-admin after migration from localhost to server
- How do I migrate blog post images from one domain to a new one?
- Why is unfiltered_upload not working despite being enabled?
- Migrated wordpress site give “Undefined variable: php” warnings
- Use of domain name
- Programtically selecting image URL in Media Library modal
- WordPress Migration Post Problems
- Organising and display thousands of photos in media library
- Hook into backbone to add js to wp-admin -> media library?
- How to Filter in the “Add Media Popup” to show only “unattached” Media
- Images on admin backend not showing up
- Host Images from Link
- Site admin can login but cannot access wp-admin after domain migration?
- WordPress Localhost migration issue
- Can I rename the wp-admin folder?
- 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
- wp_list_tables bulk actions
- How do I find all admin users using phpmyadmin?
- wp-admin produces a 302 redirect to itself
- 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
- Activating Child Theme Breaks Website, Blank Page, Error 500
- 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
- Rename W3 Total Cache admin menu
- How can I add my script to admin using script-loader.php?
- Can I edit the wp_post > post_content right before its inserted/updated?
- Can’t see login page after migration
- Edit single attachment on click (WP-admin)
- 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?
- wp_before_admin_bar_render action not working in back office
- Why am I unable to login after converting to www?
- 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!
- Subscribers become Authors after Upgrade? / Mass Update of Users?
- How to create a WP Admin user in phpMyAdmin for WordPress 4.6
- Redirect loop in /wp-admin/
- Add javascript confirmation popup on “Move to Trash” link
- 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 isn’t reflecting changes I make to a specific file via FTP [closed]
- 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
- Why does do_robots() Allow: /wp-admin/admin-ajax.php by default?
- What is the meaning or function of this notice?
- Restrict submitters from wp-admin [duplicate]
- How change a core block label
- 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
- Accessing wordpress tool in local MAMP Site
- How to load Dashboard default media files via HTTPS even when Browser URL has HTTP
- My WP-Admin is showing a blank screen
- Some fields in Settings API form are saving, others are not
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- Image paths wrong after migrating with wp-migrate-db-pro media files add-on
- 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
- Theme page headers and rotator images not assigned after website migration
- Is it possible to outsource wp-admin to another server?
- Wp mwnu not works at all
- Can’t log into WordPress after domain change
- 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
- My website’s wp-admin redirects to another website’s wp-admin after pointing the site url to a subdirectiory
- /wp-admin/ – this link showing me “Index of /wp-admin”/ instead of dashboard
- What methods are you using to transfer individual WP site components from one site to another?
- how to Hide all products except the General Manager role in the WordPress admin panel?