# Mautic in a subdirectory

**URL:** <https://forum.mautic.org/t/mautic-in-a-subdirectory/8664>\
**Category:** General Discussion\
**Created:** [June 6, 2017, 9:08am UTC](https://forum.mautic.org/t/mautic-in-a-subdirectory/8664 "2017-06-06T09:08:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mconner1](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mconner1](https://forum.mautic.org/u/mconner1)\
**Post date:** [June 6, 2017, 9:08am UTC](https://forum.mautic.org/t/mautic-in-a-subdirectory/8664/1 "2017-06-06T09:08:49Z")

</div>

Hi,  
  
Thanks for your hint about the signup forms having a second subdirectory ([site.com/ma/ma](http://site.com/ma/ma)). While your solution did solve the issue, all campaign emails sent now tag without a subdirectory ([site.com/email](http://site.com/email)) - so all email links now fail. ![:(]( ":(")  
  
  
  
I know this is some wacky configuration problem. I just can’t find it!  
  
  
  
Do you know, off the top of your head, the correct ‘site url’ for mautic installed in a subdirectory? I’ve not been able to find any concrete examples.  
  
  
  
Thanks,  
  
M.

---

<div class="post-metadata">

**Author:** ![mconner1](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mconner1](https://forum.mautic.org/u/mconner1)\
**Post date:** [June 6, 2017, 9:08am UTC](https://forum.mautic.org/t/mautic-in-a-subdirectory/8664/2 "2017-06-06T09:08:49Z")

</div>

Hi,  
Thanks for your hint about the signup forms having a second subdirectory ([site.com/ma/ma](http://site.com/ma/ma)). While your solution did solve the issue, all campaign emails sent now tag without a subdirectory ([site.com/email](http://site.com/email)) - so all email links now fail. ☹

I know this is some wacky configuration problem. I just can’t find it!

Do you know, off the top of your head, the correct ‘site url’ for mautic installed in a subdirectory? I’ve not been able to find any concrete examples.

Thanks,  
M.

---

<div class="post-metadata">

**Author:** ![robwent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robwent/32/179_2.png) [@robwent](https://forum.mautic.org/u/robwent)\
**Post date:** [June 6, 2017, 9:13am UTC](https://forum.mautic.org/t/mautic-in-a-subdirectory/8664/3 "2017-06-06T09:13:53Z")

</div>

Yeah, sorry about that.  
I tested a campaign on a test site yesterday and found that it broke all the links in an email.

I’ve updated the blog post with a warning.

There are some github issues open about this. There was a pull request a few days ago related to the issue which may eventually fix it [https://github.com/mautic/mautic/pull/4148#issuecomment-305986458](https://github.com/mautic/mautic/pull/4148#issuecomment-305986458)

For now, if possible, I’d stick to installing in the root of a domain or subdomain.

---

<div class="post-metadata">

**Author:** ![mconner1](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mconner1](https://forum.mautic.org/u/mconner1)\
**Post date:** [June 11, 2017, 1:35am UTC](https://forum.mautic.org/t/mautic-in-a-subdirectory/8664/4 "2017-06-11T01:35:55Z")

</div>

The entertaining bit is it breaks the links when emails sent automatically via campaigns, but not when send direct to a contact.

My temporary solution is to have the site url include the subdirectory. Then any forms I edit out the /subdir/subdir problem. Everything else seems to work ok.

I’ll keep an eye on the updates.

Thanks very much!
