S
S
Stanislav Pochepko2015-09-08 15:00:43
htaccess
Stanislav Pochepko, 2015-09-08 15:00:43

Why is .htacces not working for laravel?

The public folder contains .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]
</IfModule>

but index.php doesn't want to clean up.
The root directory is /var/www/my_project/public

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ajaxtelamonid, 2015-09-09
@ajaxtelamonid

Remove the first RewriteCond %{REQUEST_FILENAME} !-d.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question