# All links changing to localhost

**URL:** <https://forum.mautic.org/t/all-links-changing-to-localhost/9598>\
**Category:** Product Support\
**Created:** [September 29, 2017, 11:15am UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598 "2017-09-29T11:15:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![evrentekin](https://avatars.discourse-cdn.com/v4/letter/e/e9a140/32.png) [@evrentekin](https://forum.mautic.org/u/evrentekin)\
**Post date:** [September 29, 2017, 11:15am UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598/1 "2017-09-29T11:15:31Z")

</div>

Hello all,  
  
  
  
I am just doing some research to test Mautic features quickly. I have spinned an AWS instance, put Bitnami WAMP Stack (with Apache and PHP) on it and installed Mautic.  
  
  
  
In the general settings I put the public IP as my Site URL (I do not have a registered domain at the moment)  
  
[https://www.screencast.com/t/fHedcdNo](https://www.screencast.com/t/fHedcdNo)  
  
  
  
However, when I create a form or email, all my post actions, tracking pixels have localhost in the URL instead of the public IP  
  
[https://www.screencast.com/t/bBvKhSqP](https://www.screencast.com/t/bBvKhSqP)  
  
[https://www.screencast.com/t/gjRdYHSl](https://www.screencast.com/t/gjRdYHSl)  
  
  
  
Can you please help?  
  
  
  
Many thanks

---

<div class="post-metadata">

**Author:** ![evrentekin](https://avatars.discourse-cdn.com/v4/letter/e/e9a140/32.png) [@evrentekin](https://forum.mautic.org/u/evrentekin)\
**Post date:** [September 29, 2017, 11:15am UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598/2 "2017-09-29T11:15:31Z")

</div>

Hello all,

I am just doing some research to test Mautic features quickly. I have spinned an AWS instance, put Bitnami WAMP Stack (with Apache and PHP) on it and installed Mautic.

In the general settings I put the public IP as my Site URL (I do not have a registered domain at the moment)  
[https://www.screencast.com/t/fHedcdNo](https://www.screencast.com/t/fHedcdNo)

However, when I create a form or email, all my post actions, tracking pixels have localhost in the URL instead of the public IP  
[https://www.screencast.com/t/bBvKhSqP](https://www.screencast.com/t/bBvKhSqP)  
[https://www.screencast.com/t/gjRdYHSl](https://www.screencast.com/t/gjRdYHSl)

Can you please help?

Many thanks

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [September 29, 2017, 11:45am UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598/3 "2017-09-29T11:45:18Z")

</div>

@evrentekin you have to put the correct directory path on log directory and cache directory you still have the WAMP path.

After doing this saved and clean cache folder (delete) the folder is located under app/cache

---

<div class="post-metadata">

**Author:** ![evrentekin](https://avatars.discourse-cdn.com/v4/letter/e/e9a140/32.png) [@evrentekin](https://forum.mautic.org/u/evrentekin)\
**Post date:** [September 29, 2017, 2:24pm UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598/4 "2017-09-29T14:24:08Z")

</div>

Thanks for the reply @ninjoan

I have updated my log directory and cache directory as:  
%kernel.root\_dir%/logs  
%kernel.root\_dir%/cache

and deleted everything under app/cache however I am still having the same problem.

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [September 29, 2017, 2:58pm UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598/5 "2017-09-29T14:58:40Z")

</div>

mmmm… check your local.php file and look if the change has been saved

---

<div class="post-metadata">

**Author:** ![evrentekin](https://avatars.discourse-cdn.com/v4/letter/e/e9a140/32.png) [@evrentekin](https://forum.mautic.org/u/evrentekin)\
**Post date:** [September 29, 2017, 3:14pm UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598/6 "2017-09-29T15:14:01Z")

</div>

Yes it is there

[https://www.screencast.com/t/mBG5t3vapwuT](https://www.screencast.com/t/mBG5t3vapwuT)

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [September 29, 2017, 3:17pm UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598/7 "2017-09-29T15:17:53Z")

</div>

edit the site\_url a [http://35.176.244.74/Mautic\_2.10.1](http://35.176.244.74/Mautic_2.10.1)

---

<div class="post-metadata">

**Author:** ![evrentekin](https://avatars.discourse-cdn.com/v4/letter/e/e9a140/32.png) [@evrentekin](https://forum.mautic.org/u/evrentekin)\
**Post date:** [September 29, 2017, 3:24pm UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598/8 "2017-09-29T15:24:30Z")

</div>

Sadly still no luck

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [September 29, 2017, 3:38pm UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598/9 "2017-09-29T15:38:11Z")

</div>

after that clean the cache

---

<div class="post-metadata">

**Author:** ![tarun](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tarun/32/913_2.png) [@tarun](https://forum.mautic.org/u/tarun)\
**Post date:** [March 19, 2021, 6:20am UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598/10 "2021-03-19T06:20:08Z")

</div>

> [@evrentekin](#):
>
> However, when I create a form or email, all my post actions, tracking pixels have localhost in the URL instead of the public IP

Yes, when I create an email, all links are coming to localhost instead of the public IP.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 19, 2021, 11:00am UTC](https://forum.mautic.org/t/all-links-changing-to-localhost/9598/11 "2021-03-19T11:00:58Z")

</div>

Hi,  
Change your Mautic URL in the settings + clear cache!
