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

**URL:** <https://forum.mautic.org/t/index-php-should-it-be-part-of-root-url/1949>\
**Category:** Product Support\
**Created:** [June 11, 2015, 5:52pm UTC](https://forum.mautic.org/t/index-php-should-it-be-part-of-root-url/1949 "2015-06-11T17:52:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwillmer](https://avatars.discourse-cdn.com/v4/letter/r/58f4c7/32.png) [@rwillmer](https://forum.mautic.org/u/rwillmer)\
**Post date:** [June 11, 2015, 5:52pm UTC](https://forum.mautic.org/t/index-php-should-it-be-part-of-root-url/1949/1 "2015-06-11T17:52:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rwillmer](https://avatars.discourse-cdn.com/v4/letter/r/58f4c7/32.png) [@rwillmer](https://forum.mautic.org/u/rwillmer)\
**Post date:** [June 11, 2015, 5:52pm UTC](https://forum.mautic.org/t/index-php-should-it-be-part-of-root-url/1949/2 "2015-06-11T17:52:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [June 20, 2015, 6:52am UTC](https://forum.mautic.org/t/index-php-should-it-be-part-of-root-url/1949/3 "2015-06-20T06:52:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rwillmer](https://avatars.discourse-cdn.com/v4/letter/r/58f4c7/32.png) [@rwillmer](https://forum.mautic.org/u/rwillmer)\
**Post date:** [June 27, 2015, 3:09pm UTC](https://forum.mautic.org/t/index-php-should-it-be-part-of-root-url/1949/4 "2015-06-27T15:09:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rwillmer](https://avatars.discourse-cdn.com/v4/letter/r/58f4c7/32.png) [@rwillmer](https://forum.mautic.org/u/rwillmer)\
**Post date:** [June 27, 2015, 3:32pm UTC](https://forum.mautic.org/t/index-php-should-it-be-part-of-root-url/1949/5 "2015-06-27T15:32:46Z")

</div>

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

---

<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:59pm UTC](https://forum.mautic.org/t/index-php-should-it-be-part-of-root-url/1949/6 "2020-02-02T22:59:23Z")

</div>


