E-Mail Open Tracking 404

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?

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?

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

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

Hope this helps someone!

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

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

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

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

adding the rule mentioned here but no luck. Also the mtc.js shows 404 on 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/

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

@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

Added a NGINX rule in vhost, as defined below:

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

This Worked for me . Thanks