lundi 4 avril 2016

Laravel Pretty URL's wont work

I'm trying to remove 'index.php' of my project's url, but nothing works. I've been messing up with my .htaccess for weeks, but nothing.. nothing works! I have no idea of what is wrong. mod_rewrite is indeed enabled. Here's the content of my .htaccess under public dir:

<IfModule mod_rewrite.c>
  RewriteBase /var/www/html/arquivos/index.php/
  <IfModule mod_negotiation.c>
    Options +FollowSymlinks -MultiViews
  </IfModule>

  RewriteEngine On

  # Redirect Trailing Slashes...
  RewriteRule ^(.*)/$ /$1 [L,R=301]

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

Any suggestions? Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire