# Index.php missing in WP-Mautic leading to 404

**URL:** <https://forum.mautic.org/t/index-php-missing-in-wp-mautic-leading-to-404/2852>\
**Category:** Product Support\
**Created:** [November 27, 2015, 5:59am UTC](https://forum.mautic.org/t/index-php-missing-in-wp-mautic-leading-to-404/2852 "2015-11-27T05:59:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rekast](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rekast](https://forum.mautic.org/u/rekast)\
**Post date:** [November 27, 2015, 5:59am UTC](https://forum.mautic.org/t/index-php-missing-in-wp-mautic-leading-to-404/2852/1 "2015-11-27T05:59:59Z")

</div>

Is there a way to remove the index.php in the mautic URL?  
  
The mautic wordpress plugin, form script src references my mautic install without the index.php in the src, where as the automatic script calls for it.  
  
  
  
Example:  
  
Automatic script:  
  
script type=“text/javascript” src=“[http://mautic.example.com/index.php/form/generate.js?id=1](http://mautic.example.com/index.php/form/generate.js?id=1)”\>\</script  
  
  
  
Wordpress plugin script:  
  
script src=“[http://mautic.example.com/index.php/form/generate.js?id=1](http://mautic.example.com/index.php/form/generate.js?id=1)” type=“text/javascript”\>\</script  
  
Leading to a 404 file not found error.  
  
  
  
Any advice on the best way to fix this while also allowing the main dashboard to be accessible?  
  
[http://mautic.example.com/index.php/s/dashboard](http://mautic.example.com/index.php/s/dashboard)

---

<div class="post-metadata">

**Author:** ![rekast](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rekast](https://forum.mautic.org/u/rekast)\
**Post date:** [November 27, 2015, 5:59am UTC](https://forum.mautic.org/t/index-php-missing-in-wp-mautic-leading-to-404/2852/2 "2015-11-27T05:59:59Z")

</div>

Is there a way to remove the index.php in the mautic URL?  
The mautic wordpress plugin, form script src references my mautic install without the index.php in the src, where as the automatic script calls for it.

Example:  
Automatic script:  
script type=“text/javascript” src=“[http://mautic.example.com/index.php/form/generate.js?id=1](http://mautic.example.com/index.php/form/generate.js?id=1)”\>\</script

Wordpress plugin script:  
script src=“[http://mautic.example.com/index.php/form/generate.js?id=1](http://mautic.example.com/index.php/form/generate.js?id=1)” type=“text/javascript”\>\</script  
Leading to a 404 file not found error.

Any advice on the best way to fix this while also allowing the main dashboard to be accessible?  
[http://mautic.example.com/index.php/s/dashboard](http://mautic.example.com/index.php/s/dashboard)

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [November 27, 2015, 8:11am UTC](https://forum.mautic.org/t/index-php-missing-in-wp-mautic-leading-to-404/2852/3 "2015-11-27T08:11:13Z")

</div>

Hi @rekast , you have a bad luck for me 🙂

So this is different example from what you’ve written at [https://github.com/mautic/mautic-wordpress/issues/16](https://github.com/mautic/mautic-wordpress/issues/16) . You have the …/index.php/… in both script src attributes.

As I wrote, you have to configure your server to support mod\_rewrite which is described in the .htaccess file. Contact your server administrator. He’ll know what to do.

---

<div class="post-metadata">

**Author:** ![rekast](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rekast](https://forum.mautic.org/u/rekast)\
**Post date:** [November 27, 2015, 8:33am UTC](https://forum.mautic.org/t/index-php-missing-in-wp-mautic-leading-to-404/2852/4 "2015-11-27T08:33:14Z")

</div>

Hi @escopecz, this is an error on my part, the output of the plugin does not include the index.php  
I can not edit the above post it seems but it should be as follows  
The automatic Form script as given by Mautic installation:  
`<script type="text/javascript" src="http://mautic.example.com/index.php/form/generate.js?id=1"></script>`

The Mautic Wordpress plugin script output:  
`<script src="https://mautic.example.com/form/generate.js?id=1" type="text/javascript"></script>`

---

<div class="post-metadata">

**Author:** ![rekast](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rekast](https://forum.mautic.org/u/rekast)\
**Post date:** [November 27, 2015, 8:55am UTC](https://forum.mautic.org/t/index-php-missing-in-wp-mautic-leading-to-404/2852/5 "2015-11-27T08:55:07Z")

</div>

I understand now what you are trying to refer me to @escopecz.  
I double checked my virtual files and discovered an error in my directory entry.  
Now I am getting the mtracking.gif to show up, the form is loading, as well as no index.php is being called in my mautic URL.

Thank you for your patience and willingness to reply. Your comments helped check my installation again and helped me resolve my issue. deep gratitude.

---

<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:** [February 2, 2020, 10:56pm UTC](https://forum.mautic.org/t/index-php-missing-in-wp-mautic-leading-to-404/2852/6 "2020-02-02T22:56:52Z")

</div>


