使用AMMPS的错误500..htaccess用于laravel路由(行RewriteRule ^ index.php [L])

时间:2015-10-10 07:37:31

标签: apache .htaccess laravel mod-rewrite

在AMMPS安装Apache 2.4.12的AMMPS时,我尝试使用.htaccess来路由pourposes时得到错误500(我使用Illuminate \ Routing&使用Illuminate \ Http,而不是完整的laravel)

当读取apache日志时,只显示

127.0.0.1 - - [10/Oct/2015:08:29:49 +0100] "GET /public HTTP/1.1" 500 528 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0"

尝试在Apache上进行更多级别的调试,然后看看。

[Sat Oct 10 08:39:55.862342 2015] [core:error] [pid 41739] [client 127.0.0.1:65261] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

的.htaccess

 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] # If comment this line not error 500

如果评论最后一行不是错误,但路由不起作用

0 个答案:

没有答案