# Landing page on different URL than Mautic SW

**URL:** <https://forum.mautic.org/t/landing-page-on-different-url-than-mautic-sw/7723>\
**Category:** Product Support\
**Created:** [February 28, 2017, 4:55pm UTC](https://forum.mautic.org/t/landing-page-on-different-url-than-mautic-sw/7723 "2017-02-28T16:55:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mautic-user](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mautic-user](https://forum.mautic.org/u/mautic-user)\
**Post date:** [February 28, 2017, 4:55pm UTC](https://forum.mautic.org/t/landing-page-on-different-url-than-mautic-sw/7723/1 "2017-02-28T16:55:18Z")

</div>

We are using AWS Elastic Beanstalk to host the Mautic SW. AWS generates a URL for the app that’s something like [xyz-890.elasticbeanstalk.com](http://xyz-890.elasticbeanstalk.com), which is the URL of the Mautic login. We want the generated landing page to be hosted under a different URL, such as [landing.oursite.com](http://landing.oursite.com). We can change the URL in AWS to something else, but then the Mautic login would still be accessible by removing the path/parameters from the URL.

---

<div class="post-metadata">

**Author:** ![mautic-user](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mautic-user](https://forum.mautic.org/u/mautic-user)\
**Post date:** [February 28, 2017, 4:55pm UTC](https://forum.mautic.org/t/landing-page-on-different-url-than-mautic-sw/7723/2 "2017-02-28T16:55:18Z")

</div>

We are using AWS Elastic Beanstalk to host the Mautic SW. AWS generates a URL for the app that’s something like [xyz-890.elasticbeanstalk.com](http://xyz-890.elasticbeanstalk.com), which is the URL of the Mautic login. We want the generated landing page to be hosted under a different URL, such as [landing.oursite.com](http://landing.oursite.com). We can change the URL in AWS to something else, but then the Mautic login would still be accessible by removing the path/parameters from the URL.

---

<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:** [February 28, 2017, 9:03pm UTC](https://forum.mautic.org/t/landing-page-on-different-url-than-mautic-sw/7723/3 "2017-02-28T21:03:48Z")

</div>

use DNS points

---

<div class="post-metadata">

**Author:** ![mautic-user](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mautic-user](https://forum.mautic.org/u/mautic-user)\
**Post date:** [March 1, 2017, 2:52am UTC](https://forum.mautic.org/t/landing-page-on-different-url-than-mautic-sw/7723/4 "2017-03-01T02:52:20Z")

</div>

Could you please clarify?

---

<div class="post-metadata">

**Author:** ![mautic-user](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mautic-user](https://forum.mautic.org/u/mautic-user)\
**Post date:** [March 1, 2017, 5:05pm UTC](https://forum.mautic.org/t/landing-page-on-different-url-than-mautic-sw/7723/5 "2017-03-01T17:05:00Z")

</div>

To clarify, we want domain A to host the Mautic SW that allows us to create landing pages, etc., and another domain, B, that hosts the actual landing pages that will be part of the campaigns.

---

<div class="post-metadata">

**Author:** ![mautic-user](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mautic-user](https://forum.mautic.org/u/mautic-user)\
**Post date:** [March 10, 2017, 5:19am UTC](https://forum.mautic.org/t/landing-page-on-different-url-than-mautic-sw/7723/6 "2017-03-10T05:19:10Z")

</div>

I added the following in the .htaccess file that comes with Mautic in the block:

```auto
   RewriteCond %{HTTP_HOST} ^lead.mydomain.com$ [NC]
   RewriteRule ^$ http://www.mydomain.com [L,R=301]
```

And setup my DNS A record to point to my Elastic IP. With this, going to [lead.mydomain.com](http://lead.mydomain.com) redirects to [www.mydomain.com](http://www.mydomain.com), but the landing pages are still viewable. The site can still be accessed use the Beanstalk URL, and the Mautic SW is only accessible from there.
