# All email addresses on site change when i pull a site to local or push up to production

**URL:** https://community.kinsta.com/t/all-email-addresses-on-site-change-when-i-pull-a-site-to-local-or-push-up-to-production/941
**Category:** Application Support
**Created:** [August 19, 2021, 8:31pm UTC](https://community.kinsta.com/t/all-email-addresses-on-site-change-when-i-pull-a-site-to-local-or-push-up-to-production/941 "2021-08-19T20:31:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aaronblomberg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/aaronblomberg/32/655_2.png) [@aaronblomberg](https://community.kinsta.com/u/aaronblomberg)
#### Post date: [August 19, 2021, 8:31pm UTC](https://community.kinsta.com/t/all-email-addresses-on-site-change-when-i-pull-a-site-to-local-or-push-up-to-production/941/1 "2021-08-19T20:31:10Z")

</div>

When I pull our live site down locally to make changes, every email address on our site changes from the live version of the url to the local version of the URL. The same occurs when i push my local changes up to the live site. Is there any way I can make it so it does not change any email address in the content of our web pages when pushing and pulling?

As an example it’s changing the address like this:

- **from:** [info@example.com](mailto:info@example.com)
- **to:** info@examplestagingsite.local

We need to make sure the content of the site isn’t changed every time we push and pull since it takes a ton of manual work to manually go through each webpage and change all the email addresses back to the correct address upon pushing and pulling. Any help is greatly appreciated, thanks!

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [August 19, 2021, 9:32pm UTC](https://community.kinsta.com/t/all-email-addresses-on-site-change-when-i-pull-a-site-to-local-or-push-up-to-production/941/2 "2021-08-19T21:32:17Z")

</div>

Hello @aaronblomberg . What’s happening here is that the pull and push of the site is running through a Search and Replace of the entire database for the site to be able to viewed locally. This also ensures that all the internal links are using examplestagingsite.local to make it viewable when clicking around. It’s also catching the email address if it matches the site domain.

You shouldn’t need to be doing any manual work at all as the search and replace is also occurring in the other direction.

I do like the idea of the Search and Replace not specifically catching the email addresses a user has. I’ll share that with the team. Thanks for posting here!

---

<div class="post-metadata">

### Author: ![aaronblomberg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/aaronblomberg/32/655_2.png) [@aaronblomberg](https://community.kinsta.com/u/aaronblomberg)
#### Post date: [August 26, 2021, 10:12pm UTC](https://community.kinsta.com/t/all-email-addresses-on-site-change-when-i-pull-a-site-to-local-or-push-up-to-production/941/3 "2021-08-26T22:12:54Z")

</div>

Hi Michael,

Moving forward, after pushing we will just use the find and replace function in the Kinsta backend to change all URLs upon pushing live. Thanks for the help!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)
#### Post date: [August 29, 2021, 10:13pm UTC](https://community.kinsta.com/t/all-email-addresses-on-site-change-when-i-pull-a-site-to-local-or-push-up-to-production/941/4 "2021-08-29T22:13:14Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
