.htaccess redirection

Posted 1 year ago by omarsow94

I just hosted my site on OVH, but I have the error 500. do you think it's because of the .htaccess file .htaccess content

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

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteRule ^(.*)/$ / [L,R=301] // i have replaced the '/' and it worked.
    RewriteRule ^(.*)/$  [L,R=301]

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

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.