vendredi 24 janvier 2020

Remove index.php from Laravel deployed project

I´m currently working with laravel 6 and I'm trying to deploy my project in Apache/2.4.29 (Ubuntu) Server, my welcome page it works, but when I try to login it shows the message "The requested URL was not found on this server. " but when I try my login using index.php/login I can login and routing works good but without CSS, my .htacces file looks like this

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On
    RewriteBase /var/www/apps/hris/imiforms
# Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

My .conf in apache looks like this AllowOverride All Require all granted Require all granted

And I have enabled my rewrite mode in apache can someone tell me how to resolve this issue? please




Aucun commentaire:

Enregistrer un commentaire