2016-07-26 102 views
-1

即使/ home也是404.我剛開始學習laravel,我不知道我是否做錯了什麼。 重新安裝作曲家並創建新項目後,問題仍存在 。 Xampp正在運行。所有頁面顯示404與索引

這裏是公衆的.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> 
+0

您的Apache * mod_rewrite *是否啓用,您的* public *文件夾中是否有* .htaccess *? – TheFallen

+0

顯示您的編碼 –

+0

嗨TheFallen,是的,是的。 –

回答

0

有你添加的路由::得到(/家,HomeController的@指數);到你的路線文件?