i have 806 matches when i search for the term "localhost" in my WP database. I have gone…
- User
i have 806 matches when i search for the term "localhost" in my WP database. I have gone live and the new link is "gsigns.co.ke", however i need to update the localhost links in my database specifically wp_postmeta which has localhost referenced in the meta_value as: {"id":"98","url":"https://localhost/gsigns/wp-content/uploads/2024/04/footer-bg-img.jpg"} that is an excerpt to show how the localgost is respresented in my db. The link https://localhost/gsigns is what i want to change to https://gsigns.co.ke but whenever i search it exactly as it appears "//localhost/gsigns/" i dont see a single result yet when i search localhost they are there which means i cannot directly search it as it is how do i replace https://localhost/gsigns with domain https://gsigns.co.ke in all url with domain similar to "https://localhost/gsigns/wp-content/uploads/2024/04/footer-bg-img.jpg" without affecting the "/"syntax whatever they are
- Assistant
- User
when i use better search replace on dry run i get the error: An error occurred processing your request. Try decreasing the "Max Page Size", or contact support.
- Assistant
- User
explain exactly how to:
Option 2: Using WP-CLI
If you have command line access and WP-CLI installed:
wp search-replace ‘https://localhost/gsigns’ ‘https://gsigns.co.ke’ --precise --recurse-objects --all-tables
This command ensures serialization is handled properly. I have wp installed on a cpanel shared hosting server
- Assistant