Mautic Community Forums

Domain instead of IP address

Mautic uses my ip address in its scripts like this:



I want to change it to create scripts with my domain name like:
action="http://mydomain.com/form/submit?formId=2"

From where I should change it?

Mautic uses my ip address in its scripts like this:

I want to change it to create scripts with my domain name like:
action=“http://mydomain.com/form/submit?formId=2

From where I should change it?

that is not a Mautic problem, is relate to your server environment.

How should I change it so it use my domain intead of local ip address

I checked it’s php code and everywhere it used below code I have problem with having IP instead of domain:
$view[‘router’]->url(

where does this IP come from and how can I change it to my domain name
(I don’t have php knowledge)

You are using a VPS serveR?

Yes I’m using VPS server

I’ve set my /etc/apache2/sites-available/mautic.conf and /etc/apache2/sites-enabled/mautic.conf
and I’m using LAMP I don’t know where I should set moreover

I reinstalled everything and then I used this thread answer and problem solved:
https://www.mautic.org/community/index.php/5049-i-have-to-change-my-domain-name-any-problem/0

Which suggested this two steps:
• change domain in “site_url” in app/config/local.php
• delete app/cache/prod

Even I used answer of this thread:
https://www.mautic.org/community/index.php/5049-i-have-to-change-my-domain-name-any-problem/0
should I change anything else?

I’ve set it In mautic Settings>Configuration>Site URL and problem exists.