Mautic Community Forums

Index.php: should it be part of root URL?

I’ve installed Mautic (very smooth, thanks!)



But I have an oddity with the root URL.



If I go to http://, it redirects me to ‘/s/dashboard’. Which gives a 404.



But all works well at ‘/index.php/s/dashboard’.



Should that index.php be part of the URL? Can I get rid of it? Any recommended technique?



TIA

Rachel

I’ve installed Mautic (very smooth, thanks!)

But I have an oddity with the root URL.

If I go to http://, it redirects me to ‘/s/dashboard’. Which gives a 404.

But all works well at ‘/index.php/s/dashboard’.

Should that index.php be part of the URL? Can I get rid of it? Any recommended technique?

TIA
Rachel

Hi @rwillmer,

It sounds like your .htaccess file didn’t get uploaded to the server. Can you verify that it exists? Dot files are hidden by default so you may have to show hidden files to be able to view it.

Thanks!
Alan

Hi Alan

The .htaccess was there, but looking inside it, I could see that it needed mod_rewrite which wasn’t installed in my apache setup. So I’ve added that now, but no change.

I’ve restarted apache. Any suggestions for what I look at next? I’m trying to set this up as a virtual host on a machine I control.

Rachel

OK, solved it.

I needed to:
a) a2enmod mod_rewrite
b) edit my virtual host apache conf file to allow .htaccess files to be used in this directory

and then all is good. thanks for your help in pointing me in the right direction