# Landing Pages on Different Subdomain

**URL:** <https://forum.mautic.org/t/landing-pages-on-different-subdomain/15273>\
**Category:** General Discussion\
**Created:** [July 19, 2020, 4:13pm UTC](https://forum.mautic.org/t/landing-pages-on-different-subdomain/15273 "2020-07-19T16:13:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [July 19, 2020, 4:13pm UTC](https://forum.mautic.org/t/landing-pages-on-different-subdomain/15273/1 "2020-07-19T16:13:59Z")

</div>

My issue is I have a client that wants to host landing pages from Mautic, however wants the landing pages to sit on a different sub-domain than the mautic installation.

I have not been able to find any documentation on this or a way to do it.

Would very much appreciate some direction here.

Basically the architecture we want is [mautic.domain.com](http://mautic.domain.com) for the mautic installation and then  
[lp.domain.com/lp-name](http://lp.domain.com/lp-name) for the landing pages

Is this at all possible ?

Thanks in advance.

Regards,

Mike

---

<div class="post-metadata">

**Author:** ![lhpz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lhpz/32/2893_2.png) [@lhpz](https://forum.mautic.org/u/lhpz)\
**Post date:** [July 19, 2020, 5:46pm UTC](https://forum.mautic.org/t/landing-pages-on-different-subdomain/15273/2 "2020-07-19T17:46:56Z")

</div>

I think you can try to do that by configuring your HTTP server and DNS this way, assuming you’re using Apache:

- configure your main virtual host in Apache to send incoming requests to [http://mautic.domain.com](http://mautic.domain.com) on the PHP code of your mautic installation . This is the normal configuration.
- add a server alias [lp.domain.com](http://lp.domain.com) to this main server. See here [https://httpd.apache.org/docs/current/mod/core.html#serveralias](https://httpd.apache.org/docs/current/mod/core.html#serveralias)
- configure the DNS so that [lp.domain.com](http://lp.domain.com) is the same IP as [mautic.domain.com](http://mautic.domain.com)

This way, the same mautic installation is available from two different sub-domains. There is sill one important issue to be solved: an appropriate cookie domain. I think you will also have to set the _mautic.cookie\_domain_ configuration parameter to [domain.com](http://domain.com) in _config/local.php_, so that the same tracking cookie is used both on [mautic.domain.com](http://mautic.domain.com) and [lp.mautic.domain.com](http://lp.mautic.domain.com).

If you want to have SSL support, then it will be a little more difficult, you may either:

- use a wildcard certificate \*.domain.com that will match both the main name and the alias with a single certificate.
- instead of using ServerAlias, create a second vhost [lp.domain.com](http://lp.domain.com), pointing to the same PHP code as the main vhost, but configured with a different certificate.

This should work but it’s just an idea, completely untested…

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [July 21, 2020, 6:04pm UTC](https://forum.mautic.org/t/landing-pages-on-different-subdomain/15273/3 "2020-07-21T18:04:18Z")

</div>

Thanks will give this a try when time allows and will update here results.
