Setup on serer but the url needs index.php

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.

Hi - did you try this?

1 Like

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:

<Directory /var/www/html>
    AllowOverride All

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).

1 Like

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