# Mautic on sub directory issues

**URL:** <https://forum.mautic.org/t/mautic-on-sub-directory-issues/9577>\
**Category:** Product Support\
**Created:** [September 27, 2017, 12:06pm UTC](https://forum.mautic.org/t/mautic-on-sub-directory-issues/9577 "2017-09-27T12:06:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![metric.live](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@metric.live](https://forum.mautic.org/u/metric.live)\
**Post date:** [September 27, 2017, 12:06pm UTC](https://forum.mautic.org/t/mautic-on-sub-directory-issues/9577/1 "2017-09-27T12:06:59Z")

</div>

I have mautic installed (latest version) in a subdirectory and it’s giving me some issues:  
  
If I set the site URL to “[domain.com](http://domain.com)” email tracking urls don’t work and create faulty url’s  
  
If I set the site URL to “[domain.com/subdirectiry](http://domain.com/subdirectiry)” email tracking works just fine, but forms don’t work anymore  
  
  
  
Is there a way to resolve this? Or should I just move the entire installation to a subdomain?

---

<div class="post-metadata">

**Author:** ![sergio-bolinches](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sergio-bolinches](https://forum.mautic.org/u/sergio-bolinches)\
**Post date:** [October 2, 2017, 3:43pm UTC](https://forum.mautic.org/t/mautic-on-sub-directory-issues/9577/2 "2017-10-02T15:43:39Z")

</div>

I have Mautic working in a Subfolder and I don´t have any issue 🙂

---

<div class="post-metadata">

**Author:** ![metric.live](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@metric.live](https://forum.mautic.org/u/metric.live)\
**Post date:** [September 27, 2017, 12:06pm UTC](https://forum.mautic.org/t/mautic-on-sub-directory-issues/9577/3 "2017-09-27T12:06:59Z")

</div>

I have mautic installed (latest version) in a subdirectory and it’s giving me some issues:  
If I set the site URL to “[domain.com](http://domain.com)” email tracking urls don’t work and create faulty url’s  
If I set the site URL to “[domain.com/subdirectiry](http://domain.com/subdirectiry)” email tracking works just fine, but forms don’t work anymore

Is there a way to resolve this? Or should I just move the entire installation to a subdomain?

---

<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 27, 2017, 12:21pm UTC](https://forum.mautic.org/t/mautic-on-sub-directory-issues/9577/4 "2017-09-27T12:21:52Z")

</div>

Go to Forms Select all forms and in the select box select rebuild forms.

---

<div class="post-metadata">

**Author:** ![metric.live](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@metric.live](https://forum.mautic.org/u/metric.live)\
**Post date:** [September 27, 2017, 2:52pm UTC](https://forum.mautic.org/t/mautic-on-sub-directory-issues/9577/5 "2017-09-27T14:52:31Z")

</div>

That doesn’t help, the forms are loaded but they hang on submit.

---

<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 27, 2017, 3:43pm UTC](https://forum.mautic.org/t/mautic-on-sub-directory-issues/9577/6 "2017-09-27T15:43:40Z")

</div>

Clean cache folder

---

<div class="post-metadata">

**Author:** ![metric.live](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@metric.live](https://forum.mautic.org/u/metric.live)\
**Post date:** [September 28, 2017, 6:28pm UTC](https://forum.mautic.org/t/mautic-on-sub-directory-issues/9577/7 "2017-09-28T18:28:45Z")

</div>

Yes, I’ve done that already. By using both the PHP command and clearing the cache directory manually.  
There’s also no errors in the javascript console when I try to submit the form, it just hangs … when I set the site url back without the subdirectory they work again.

I will try to recreate to form completely and see if it’s a structural problem or not. If that doesn’t work I’ll have to migrate to a subdomain, but I fear that will mess with the cookies of already recognized users …

---

<div class="post-metadata">

**Author:** ![metric.live](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@metric.live](https://forum.mautic.org/u/metric.live)\
**Post date:** [September 28, 2017, 7:27pm UTC](https://forum.mautic.org/t/mautic-on-sub-directory-issues/9577/8 "2017-09-28T19:27:23Z")

</div>

Recreating the form didn’t help, so I’m going to migrate to a subdomain

---

<div class="post-metadata">

**Author:** ![sergio-bolinches](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sergio-bolinches](https://forum.mautic.org/u/sergio-bolinches)\
**Post date:** [October 2, 2017, 3:40pm UTC](https://forum.mautic.org/t/mautic-on-sub-directory-issues/9577/9 "2017-10-02T15:40:56Z")

</div>

HI @metric.live

Is it your problem with subfolder or with the Forms? There is just one way to configure the URL Mautic. If you put this adress fine, and the forms don´t work, the problem is in your Forms.

In the community there is a lot of post about this problem with the forms.

This worked fine for me! Prove it¡

[https://www.mautic.org/community/index.php/8154-form-is-hang-on-submit-button-after-hit-submit/p2#p25623](https://www.mautic.org/community/index.php/8154-form-is-hang-on-submit-button-after-hit-submit/p2#p25623)
