2016-07-12 21 views
-1

私のルーメンのパブリックフォルダにある.htaccessファイルで可能なすべてのオプションを試しましたが、私にはPretty URLが与えられていません。.htaccessファイルがLaravel Lumenで動作していません。5.2

以前のバージョンのルーメンでは、.htaccessルールには触れていませんでしたが、出荷されたデフォルトの.htaccessファイルでは完全に機能していました。 しかし、この新しいバージョン5.2では何も動作していないようです。次のように

デフォルトは次のとおりです。

# Apache configuration file 
# http://httpd.apache.org/docs/2.2/mod/quickreference.html 

# Note: ".htaccess" files are an overhead for each request. This logic  should 
# be placed in your Apache config whenever possible. 
# http://httpd.apache.org/docs/2.2/howto/htaccess.html 

# Turning on the rewrite engine is necessary for the following rules and 
# features. "+FollowSymLinks" must be enabled for this to work symbolically. 

<IfModule mod_rewrite.c> 
    Options +FollowSymLinks 
    RewriteEngine On 
</IfModule> 

# For all files not found in the file system, reroute the request to the 
# "index.php" front controller, keeping the query string intact 

<IfModule mod_rewrite.c> 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ index.php/$1 [L] 
</IfModule> 

任意の考え?!

答えて

0

であなたのApacheの設定ファイル(httpd.confのかapache2.conf)あなたは "AllowOverrideのを" を "すべて" に変更する必要があります。

<Directory /> 
    Options FollowSymLinks 
    AllowOverride All 
</Directory> 
関連する問題