Mautic Community Forums

Index.php missing in WP-Mautic leading to 404

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”></script



Wordpress plugin script:

script src=“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

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”></script

Wordpress plugin script:
script src=“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

Hi @rekast , you have a bad luck for me :slight_smile:

So this is different example from what you’ve written at 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.

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>

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.