# E-Mail Open Tracking 404

**URL:** <https://forum.mautic.org/t/e-mail-open-tracking-404/6295>\
**Category:** Development\
**Created:** [October 25, 2016, 12:36pm UTC](https://forum.mautic.org/t/e-mail-open-tracking-404/6295 "2016-10-25T12:36:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattk](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mattk](https://forum.mautic.org/u/mattk)\
**Post date:** [October 25, 2016, 12:36pm UTC](https://forum.mautic.org/t/e-mail-open-tracking-404/6295/1 "2016-10-25T12:36:06Z")

</div>

We recently started sending emails through Mautic with the E-Mail Open Tracking gif.  
  
  
  
The URL is being generated as http://{mauticurl}.com/index.php?/email/{emailid}.gif  
  
  
  
When I navigate to this URL (as well as inspect it in my browser), it is coming up as a 404 error.  
  
  
  
Also, we tried http://{mauticurl}.com/email/{emailid}.gif but still getting a 404.  
  
  
  
We use NGINX for our web server.  
  
  
  
Does anyone know if there is an extra directive command I need to add to my configuration?

---

<div class="post-metadata">

**Author:** ![mattk](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mattk](https://forum.mautic.org/u/mattk)\
**Post date:** [October 25, 2016, 12:36pm UTC](https://forum.mautic.org/t/e-mail-open-tracking-404/6295/2 "2016-10-25T12:36:06Z")

</div>

We recently started sending emails through Mautic with the E-Mail Open Tracking gif.

The URL is being generated as http://{mauticurl}.com/index.php?/email/{emailid}.gif

When I navigate to this URL (as well as inspect it in my browser), it is coming up as a 404 error.

Also, we tried http://{mauticurl}.com/email/{emailid}.gif but still getting a 404.

We use NGINX for our web server.

Does anyone know if there is an extra directive command I need to add to my configuration?

---

<div class="post-metadata">

**Author:** ![mattk](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mattk](https://forum.mautic.org/u/mattk)\
**Post date:** [November 6, 2016, 12:07am UTC](https://forum.mautic.org/t/e-mail-open-tracking-404/6295/3 "2016-11-06T00:07:11Z")

</div>

I fixed this by adding a NGINX rule as defined below:

location ~ email/(.\*).gif{  
try\_files $uri /index.php?$args;  
}

Hope this helps someone!

---

<div class="post-metadata">

**Author:** ![Elenchus](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@Elenchus](https://forum.mautic.org/u/Elenchus)\
**Post date:** [November 7, 2016, 12:25am UTC](https://forum.mautic.org/t/e-mail-open-tracking-404/6295/4 "2016-11-07T00:25:59Z")

</div>

Thanks for this, there’s been a few people asking recently

---

<div class="post-metadata">

**Author:** ![chandan](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@chandan](https://forum.mautic.org/u/chandan)\
**Post date:** [December 15, 2016, 6:05am UTC](https://forum.mautic.org/t/e-mail-open-tracking-404/6295/5 "2016-12-15T06:05:48Z")

</div>

How to fix this with apache - we are using mautic bitnami image.

---

<div class="post-metadata">

**Author:** ![chandan](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@chandan](https://forum.mautic.org/u/chandan)\
**Post date:** [December 27, 2016, 3:08pm UTC](https://forum.mautic.org/t/e-mail-open-tracking-404/6295/6 "2016-12-27T15:08:01Z")

</div>

The Bitnami image had set Site URL to [http://aws-host-name:80/mautic/](http://aws-host-name:80/mautic/) and changing it to [http://mautic.ourdomain.com](http://mautic.ourdomain.com) - fixed the issue.

---

<div class="post-metadata">

**Author:** ![jemmasta](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jemmasta](https://forum.mautic.org/u/jemmasta)\
**Post date:** [May 23, 2017, 5:42pm UTC](https://forum.mautic.org/t/e-mail-open-tracking-404/6295/7 "2017-05-23T17:42:53Z")

</div>

I have the same issue with nginx and this didn’t fix the issue unfortunately. I’ve tried this setup [https://gist.github.com/that0n3guy/905c812c0f65e7ffb5ec](https://gist.github.com/that0n3guy/905c812c0f65e7ffb5ec)

adding the rule mentioned here but no luck. Also the mtc.js shows 404 on [mymautic.com/mtc.js](http://mymautic.com/mtc.js)

I run my mautic with ssl. might this have some special issue? I hope someone can help.

EDIT: [https://community.centminmod.com/threads/mautic-–-opensource-marketing-email-automation-nginx-lemp-setup-centmin-mod.11664/](https://community.centminmod.com/threads/mautic-%E2%80%93-opensource-marketing-email-automation-nginx-lemp-setup-centmin-mod.11664/)

Gonna test out modifying this one match to my config, let’s see if it helps.

---

<div class="post-metadata">

**Author:** ![jCst](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jCst](https://forum.mautic.org/u/jCst)\
**Post date:** [May 24, 2017, 8:11am UTC](https://forum.mautic.org/t/e-mail-open-tracking-404/6295/8 "2017-05-24T08:11:26Z")

</div>

@jemmasta you solution may be here:

[https://www.mautic.org/community/index.php/7552-v-2-8-0-404-on-mautic-form-js/p1#p22721](https://www.mautic.org/community/index.php/7552-v-2-8-0-404-on-mautic-form-js/p1#p22721)

---

<div class="post-metadata">

**Author:** ![sonu88](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sonu88/32/6164_2.png) [@sonu88](https://forum.mautic.org/u/sonu88)\
**Post date:** [November 25, 2021, 6:11pm UTC](https://forum.mautic.org/t/e-mail-open-tracking-404/6295/9 "2021-11-25T18:11:39Z")

</div>

Added a NGINX rule in vhost, as defined below:

location ~ email/(.\*).gif{  
try\_files $uri /index.php?$args;  
}

This Worked for me . Thanks
