dimanche 8 juillet 2018

Access Laravel project redirect to localhost

My other laravel projects are working, but with this one project I can't access anything it, if I type http://localhost/myproject or http://localhost/myproject/public it always redirects me to localhost, in my case to the XAMPP home page localhost, ( same with Laragon, it redirects me to the root page Index of / listing the folders/files contained in the parent folder of my project )

.htaccess :

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

    RewriteEngine On

    # 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]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

This is not a duplicate, I tried everything in the others topics, I'm stuck on this problem for more that 4 hours now, I don't think it's because of the .htaccess though, because it's the same in my other projects.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire