# Setup on serer but the url needs index.php

**URL:** https://forum.mautic.org/t/setup-on-serer-but-the-url-needs-index-php/31647
**Category:** Mautic 5 Install/Upgrade Support
**Tags:** community, development
**Created:** [April 12, 2024, 6:42am UTC](https://forum.mautic.org/t/setup-on-serer-but-the-url-needs-index-php/31647 "2024-04-12T06:42:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![prince\_kumar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/prince_kumar/32/13384_2.png) [@prince\_kumar](https://forum.mautic.org/u/prince_kumar)
#### Post date: [April 12, 2024, 6:42am UTC](https://forum.mautic.org/t/setup-on-serer-but-the-url-needs-index-php/31647/1 "2024-04-12T06:42:43Z")

</div>

**Your software**  
My Mautic version is: 5.0.0  
My PHP version is: 8.1

**Your problem**  
My problem is: when i hit url **http:///demo\_mautic/s/login** its show error 404  
then i added index.php after demo\_mautic url **http:///demo\_mautic/index.php/s/login**  
this working fine.  
same as all pages when adding index.php its working fine.  
i think there is an issue on .htaccess but i can figure it out.

---

<div class="post-metadata">

### Author: ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)
#### Post date: [April 12, 2024, 8:25pm UTC](https://forum.mautic.org/t/setup-on-serer-but-the-url-needs-index-php/31647/2 "2024-04-12T20:25:55Z")

</div>

Hi - did you try this?  
[https://www.google.com/search?q=remove+index.php+from+url+htaccess&oq=remove+index.php+from+url+htaccess](https://www.google.com/search?q=remove+index.php+from+url+htaccess&oq=remove+index.php+from+url+htaccess)

---

<div class="post-metadata">

### Author: ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)
#### Post date: [April 13, 2024, 1:50pm UTC](https://forum.mautic.org/t/setup-on-serer-but-the-url-needs-index-php/31647/3 "2024-04-13T13:50:19Z")

</div>

Maybe you’re missing the mod\_rewrite?

Debian/Ubuntu (and other Debian based flavors):  
sudo a2enmod rewrite

\*\* You may also need to allow overriding of the rules in your Apache configuration, depending where you installed your web app.

i.e., if you used the default host, you’ll need to update the rule within this node from None to All:

```auto
<Directory /var/www/html>
    AllowOverride All
</Directory>

```

And don’t forget to reload your Apache configuration.

Nota Bene  
While “AllowOverride All” is often suggested in different HowTo over the web, this is usually opening a security hole at the server level and should only be used for testing. Be sure to understand what “All” implies before using it in a live environment (when you’ll do, you’ll probably won’t use it and go a more granular way).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)
#### Post date: [April 15, 2024, 10:38am UTC](https://forum.mautic.org/t/setup-on-serer-but-the-url-needs-index-php/31647/4 "2024-04-15T10:38:16Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
