• I am trying to replace in the WP database “domain.com” to “subdomain.domain.com”. The problem is that when if there are already instances of subdomain.domain.com in the database before the search and replace the plugin will replace the word domain.com with subdomain.domain.com resulting in subdomain.subdomain.domain.com. How can I prevent this?

Viewing 1 replies (of 1 total)
  • Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @robschieren ,

    Better Search Replace Support Team here.
    Thanks for reaching out with your query! We would be happy to assist.

    Unfortunately, there is no easy way to avoid these.
    The best way would be to try and have more specific search term.

    One workaround that you could try would be to change the existing “subdomain.domain.com” first.
    (i.e. subdomain.domain-temp.com). Then run the search and replace for “domain.com”.
    Then afterwards, run another search for “subdomain.domain-temp.com” to change it back to the original “subdomain.domain.com”.

    Again, kindly make sure that you have a working backup of your site before doing changes like these.
    Thank you.

Viewing 1 replies (of 1 total)

The topic ‘replacing domain with subdomain’ is closed to new replies.