# How I fix failed to load resource. the server responded with a status of 404 () for connection between wordpress and mautic in the subdomain

**URL:** <https://forum.mautic.org/t/how-i-fix-failed-to-load-resource-the-server-responded-with-a-status-of-404-for-connection-between-wordpress-and-mautic-in-the-subdomain/14097>\
**Category:** Product Support\
**Created:** [April 29, 2020, 5:43am UTC](https://forum.mautic.org/t/how-i-fix-failed-to-load-resource-the-server-responded-with-a-status-of-404-for-connection-between-wordpress-and-mautic-in-the-subdomain/14097 "2020-04-29T05:43:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![honggian](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/honggian/32/947_2.png) [@honggian](https://forum.mautic.org/u/honggian)\
**Post date:** [April 29, 2020, 5:43am UTC](https://forum.mautic.org/t/how-i-fix-failed-to-load-resource-the-server-responded-with-a-status-of-404-for-connection-between-wordpress-and-mautic-in-the-subdomain/14097/1 "2020-04-29T05:43:59Z")

</div>

**Your software**  
My Mautic version is: 2.16.2  
My PHP version is: 7.2.30

**Your problem**  
My problem is: I couldn’t connect my wordpress site when I install in the subdomain.

I manage my website using WordOps like EasyEngine V3. I use WordOps because it is very convenient to manage many website, reverse proxy, etc.

These errors are showing in the log: error log is empty

Steps I have tried to fix the problem:

Hello Mautic forum

I install Mautic as a subdomain like ma.sangean.co.kr without any problem.

I connect to my wordpress site sangean.co.kr and insert shortcode using mautic wordpress plugin.

I got the following errors, I don’t know how to fix it.

 ![sangean.co.kr – Just another WordPress site 2020-04-29 14-32-48](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2e0f5937b00fc62b4a51cba17a68b781711c6c5a.png)

[Error] Failed to load resource: the server responded with a status of 404 () (generate.js, line 0)  
[Error] Refused to execute [https://ma.sangean.co.kr/form/generate.js?id=1](https://ma.sangean.co.kr/form/generate.js?id=1) as script because “X-Content-Type: nosniff” was given and its Content-Type is not a script MIME type.  
[Error] Failed to load resource: the server responded with a status of 404 () (mtc.js, line 0)  
[Error] Refused to execute [https://ma.sangean.co.kr/mtc.js](https://ma.sangean.co.kr/mtc.js) as script because “X-Content-Type: nosniff” was given and its Content-Type is not a script MIME type.

By the way, I failed to install in the subdirectory, so If you know how to install subdirectory, it is also welcome. Because webbrowser looking for the wordpress, not mautic installation page all the time.

Sincerely,

Honggi An

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [April 29, 2020, 7:41pm UTC](https://forum.mautic.org/t/how-i-fix-failed-to-load-resource-the-server-responded-with-a-status-of-404-for-connection-between-wordpress-and-mautic-in-the-subdomain/14097/2 "2020-04-29T19:41:20Z")

</div>

Check if Wordfence or similar is not restricting your Mautic install.

---

<div class="post-metadata">

**Author:** ![honggian](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/honggian/32/947_2.png) [@honggian](https://forum.mautic.org/u/honggian)\
**Post date:** [April 30, 2020, 1:55am UTC](https://forum.mautic.org/t/how-i-fix-failed-to-load-resource-the-server-responded-with-a-status-of-404-for-connection-between-wordpress-and-mautic-in-the-subdomain/14097/3 "2020-04-30T01:55:06Z")

</div>

@joeyk Thank you for your reply. I only install mautic plugin for testing from clean wordpress instllation from new server.

---

<div class="post-metadata">

**Author:** ![honggian](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/honggian/32/947_2.png) [@honggian](https://forum.mautic.org/u/honggian)\
**Post date:** [May 1, 2020, 3:37pm UTC](https://forum.mautic.org/t/how-i-fix-failed-to-load-resource-the-server-responded-with-a-status-of-404-for-connection-between-wordpress-and-mautic-in-the-subdomain/14097/4 "2020-05-01T15:37:21Z")

</div>

I solve this problem for installation as subfolder. But I couldn’t solve loading of mautic-form.js

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [March 15, 2024, 11:43pm UTC](https://forum.mautic.org/t/how-i-fix-failed-to-load-resource-the-server-responded-with-a-status-of-404-for-connection-between-wordpress-and-mautic-in-the-subdomain/14097/5 "2024-03-15T23:43:43Z")

</div>

I encountered this issue because the server was trying to serve the mtc.js file statically over NGINX, in case others have a similar issue.
