.htaccess 356 Bytes
Newer Older
Taylor Otwell committed
1
<IfModule mod_rewrite.c>
Chen Hua committed
2 3
    <IfModule mod_negotiation.c>
        Options -MultiViews
Taylor Otwell committed
4 5
    </IfModule>

Taylor Otwell committed
6
    RewriteEngine On
7

8
    # Redirect Trailing Slashes...
Chen Hua committed
9
    RewriteRule ^(.*)/$ /$1 [L,R=301]
10

Chen Hua committed
11
    # Handle Front Controller...
12
    RewriteCond %{REQUEST_FILENAME} !-d
Taylor Otwell committed
13 14
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
15
</IfModule>